diff options
-rwxr-xr-x | package/busybox/udhcpc.script | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/package/busybox/udhcpc.script b/package/busybox/udhcpc.script index 0bb3dea03..f7beb56a0 100755 --- a/package/busybox/udhcpc.script +++ b/package/busybox/udhcpc.script @@ -10,14 +10,9 @@ RESOLV_CONF="/etc/resolv.conf" case "$1" in deconfig) - grep -q -v ip= /proc/cmdline - if [ $? -eq 0 ]; then - /sbin/ifconfig $interface up - fi - grep -q -v nfsroot= /proc/cmdline - if [ $? -eq 0 ]; then - /sbin/ifconfig $interface 0.0.0.0 - fi + /sbin/ifconfig $interface up + /sbin/ifconfig $interface 0.0.0.0 + if [ -x /usr/sbin/avahi-autoipd ]; then /usr/sbin/avahi-autoipd -k $interface fi |