summaryrefslogtreecommitdiff
path: root/openwrt/target/default/target_skeleton/usr
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
commit7f5d2b42128e781dd62d5971880e75d6edd3afda (patch)
tree77afcc78cdc69f86f074a0f64f1bd11c86686f0c /openwrt/target/default/target_skeleton/usr
parent13031a44b085ea5564279672a04d16d74bdbb04f (diff)
downloadmtk-20170518-7f5d2b42128e781dd62d5971880e75d6edd3afda.zip
mtk-20170518-7f5d2b42128e781dd62d5971880e75d6edd3afda.tar.gz
mtk-20170518-7f5d2b42128e781dd62d5971880e75d6edd3afda.tar.bz2
use busybox's "ifconfig broadcast +" if no broadcast is sent via dhcp
SVN-Revision: 658
Diffstat (limited to 'openwrt/target/default/target_skeleton/usr')
-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 87be32d..996366e 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"