From 519d691022ec31e72cdd90f7987674d93065dccc Mon Sep 17 00:00:00 2001 From: mbm Date: Mon, 18 Apr 2005 03:52:42 +0000 Subject: 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 --- target/default/target_skeleton/usr/share/udhcpc/default.script | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'target/default/target_skeleton') 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" -- cgit v1.2.3