use busybox's "ifconfig broadcast +" if no broadcast is sent via dhcp
[openwrt-10.03/.git] / 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"