prevent zombies from occuring when stdou/stdout are held open
[openwrt.git] / openwrt / target / default / target_skeleton / usr / share / udhcpc / default.script
index 87be32d..cc94a79 100755 (executable)
@@ -1,6 +1,6 @@
 #!/bin/sh
 # udhcpc script edited by Tim Riker <Tim@Rikers.org>
-# (slightly modified)
+# (slightly modified for openwrt)
 
 [ -z "$1" ] && echo "Error: should be run by udhcpc" && exit 1
 
@@ -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.0231 seconds and 4 git commands to generate.