summaryrefslogtreecommitdiff
path: root/openwrt/target
diff options
context:
space:
mode:
authormbm <mbm@3c298f89-4303-0410-b956-a3cf2f4a3e73>2005-04-18 03:52:42 +0000
committermbm <mbm@3c298f89-4303-0410-b956-a3cf2f4a3e73>2005-04-18 03:52:42 +0000
commite311d137d20284608d5900df62dc9935b591f126 (patch)
tree77afcc78cdc69f86f074a0f64f1bd11c86686f0c /openwrt/target
parentfe9440143e03e038d44c7e56d7aea9f260ca72ea (diff)
use busybox's "ifconfig broadcast +" if no broadcast is sent via dhcp
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@658 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'openwrt/target')
-rwxr-xr-xopenwrt/target/default/target_skeleton/usr/share/udhcpc/default.script4
1 files changed, 2 insertions, 2 deletions
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 87be32d1ad..996366ea1d 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"