summaryrefslogtreecommitdiff
path: root/target/default/target_skeleton/usr
diff options
context:
space:
mode:
Diffstat (limited to 'target/default/target_skeleton/usr')
-rwxr-xr-xtarget/default/target_skeleton/usr/share/udhcpc/default.script4
1 files changed, 2 insertions, 2 deletions
diff --git a/target/default/target_skeleton/usr/share/udhcpc/default.script b/target/default/target_skeleton/usr/share/udhcpc/default.script
index 87be32d1ad..996366ea1d 100755
--- a/target/default/target_skeleton/usr/share/udhcpc/default.script
+++ b/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"