From: Mike Baker Date: Mon, 18 Apr 2005 03:52:42 +0000 (+0000) Subject: use busybox's "ifconfig broadcast +" if no broadcast is sent via dhcp X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=7f5d2b42128e781dd62d5971880e75d6edd3afda;p=openwrt%2Fstaging%2Fadrian.git use busybox's "ifconfig broadcast +" if no broadcast is sent via dhcp SVN-Revision: 658 --- diff --git a/openwrt/target/default/target_skeleton/usr/share/udhcpc/default.script b/openwrt/target/default/target_skeleton/usr/share/udhcpc/default.script index 87be32d1ad..996366ea1d 100755 --- a/openwrt/target/default/target_skeleton/usr/share/udhcpc/default.script +++ b/openwrt/target/default/target_skeleton/usr/share/udhcpc/default.script @@ -13,8 +13,8 @@ case "$1" in renew|bound) ifconfig $interface $ip \ - ${broadcast:+broadcast $broadcast} \ - ${subnet:+netmask $subnet} + netmask ${subnet:-255.255.255.0} \ + broadcast ${broadcast:-+} if [ -n "$router" ] ; then echo "deleting routers"