X-Git-Url: http://git.rohieb.name/openwrt.git/blobdiff_plain/6fa165042b07cbb6ff52d2439e79d8ffe17be4ab..e311d137d20284608d5900df62dc9935b591f126:/openwrt/target/default/target_skeleton/usr/share/udhcpc/default.script diff --git a/openwrt/target/default/target_skeleton/usr/share/udhcpc/default.script b/openwrt/target/default/target_skeleton/usr/share/udhcpc/default.script index 87be32d1a..996366ea1 100755 --- a/openwrt/target/default/target_skeleton/usr/share/udhcpc/default.script +++ b/openwrt/target/default/target_skeleton/usr/share/udhcpc/default.script @@ -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"