use busybox's "ifconfig broadcast +" if no broadcast is sent via dhcp
authormbm <mbm@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Mon, 18 Apr 2005 03:52:42 +0000 (03:52 +0000)
committermbm <mbm@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Mon, 18 Apr 2005 03:52:42 +0000 (03:52 +0000)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@658 3c298f89-4303-0410-b956-a3cf2f4a3e73

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

index 87be32d..996366e 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"
This page took 0.024338 seconds and 4 git commands to generate.