use busybox's "ifconfig broadcast +" if no broadcast is sent via dhcp
authorMike Baker <mbm@openwrt.org>
Mon, 18 Apr 2005 03:52:42 +0000 (03:52 +0000)
committerMike Baker <mbm@openwrt.org>
Mon, 18 Apr 2005 03:52:42 +0000 (03:52 +0000)
SVN-Revision: 658

openwrt/target/default/target_skeleton/usr/share/udhcpc/default.script

index 87be32d1ade36858a1b78e5da420e75b7f39d8b1..996366ea1df870bc1552db4006177df31babcd3a 100755 (executable)
@@ -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"