X-Git-Url: http://git.rohieb.name/openwrt.git/blobdiff_plain/c31ac521e420aa0cfd3ddbc0859b29b0e2a3ff3e..8e8fb0083c72cdd06d1b4799aedeb75130eb24ee:/target/default/target_skeleton/usr/share/udhcpc/default.script?ds=sidebyside diff --git a/target/default/target_skeleton/usr/share/udhcpc/default.script b/target/default/target_skeleton/usr/share/udhcpc/default.script index 87be32d1a..cc94a7927 100755 --- a/target/default/target_skeleton/usr/share/udhcpc/default.script +++ b/target/default/target_skeleton/usr/share/udhcpc/default.script @@ -1,6 +1,6 @@ #!/bin/sh # udhcpc script edited by Tim Riker -# (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"