aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Baker <mbm@openwrt.org>2005-04-18 03:52:42 +0000
committerMike Baker <mbm@openwrt.org>2005-04-18 03:52:42 +0000
commit90d29558bad2f2e0ee584f4b478bd6fb135822df (patch)
treea137a4199703a97077ebdfd1a8c879f81fbd870d
parente53ae39960402950f0be9bce2fe10d607ec250f0 (diff)
downloadupstream-90d29558bad2f2e0ee584f4b478bd6fb135822df.tar.gz
upstream-90d29558bad2f2e0ee584f4b478bd6fb135822df.tar.bz2
upstream-90d29558bad2f2e0ee584f4b478bd6fb135822df.zip
use busybox's "ifconfig broadcast +" if no broadcast is sent via dhcp
git-svn-id: svn://svn.openwrt.org/openwrt/trunk/openwrt@658 3c298f89-4303-0410-b956-a3cf2f4a3e73
-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"