busybox-udhcpc: add option to skip default route.
The IDU requires that udhcpc does neither touch resolv.conf nor install a default route. Add a flag to switch off default route installation, the resolv.conf part is already switch-off-able.
This commit is contained in:
parent
ea8c1346e5
commit
1411cacbce
|
@ -1,6 +1,6 @@
|
|||
SYSMOCOM := "${@os.path.dirname(bb.data.getVar('FILE', d, True))}"
|
||||
FILESEXTRAPATHS_prepend := "${SYSMOCOM}/busybox-${SYSMOCOM_ORIG_PV}:${SYSMOCOM}/files:"
|
||||
PRINC = "28"
|
||||
PRINC = "29"
|
||||
|
||||
SRC_URI += "file://udhcpc-ntp.sh \
|
||||
file://udhcpc-ntp.default \
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
#!/bin/sh
|
||||
|
||||
# udhcpc script edited by Tim Riker <Tim@Rikers.org>
|
||||
# Added INSTALL_DEFAULT_ROUTE flag, by <info@sysmocom.de>
|
||||
|
||||
[ -z "$1" ] && echo "Error: should be called from udhcpc" && exit 1
|
||||
|
||||
|
@ -46,7 +47,7 @@ case "$1" in
|
|||
/sbin/ifconfig $interface $ip $BROADCAST $NETMASK
|
||||
fi
|
||||
|
||||
if [ -n "$router" ] ; then
|
||||
if [ -n "$router" -a "$INSTALL_DEFAULT_ROUTE" != "no" ] ; then
|
||||
if ! root_is_nfs ; then
|
||||
if [ $have_bin_ip -eq 1 ]; then
|
||||
while ip route del default dev $interface 2>/dev/null ; do
|
||||
|
|
|
@ -1,2 +1,5 @@
|
|||
# Uncomment the following line, if udhcpc should not touch /etc/resolv.conf
|
||||
# STATIC_DNS="yes"
|
||||
#STATIC_DNS="yes"
|
||||
|
||||
# Uncomment the following line if udhcpc should not install a default route
|
||||
#INSTALL_DEFAULT_ROUTE="no"
|
||||
|
|
Loading…
Reference in New Issue