From: Mike Baker Date: Thu, 8 Jul 2004 02:18:04 +0000 (+0000) Subject: fix broadcast address (kudos to fenestro for point out broadcast +) X-Git-Tag: reboot~33627 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=dbe231b322345cfc2111492eab35cef2b64961ba;p=oweals%2Fopenwrt.git fix broadcast address (kudos to fenestro for point out broadcast +) SVN-Revision: 81 --- diff --git a/root/etc/functions.sh b/root/etc/functions.sh index 09ba6feea2..1f9afb2948 100755 --- a/root/etc/functions.sh +++ b/root/etc/functions.sh @@ -67,7 +67,7 @@ ifup () ( if_netmask=$(nvram_get ${type}_netmask) if_gateway=$(nvram_get ${type}_gateway) - $DEBUG ifconfig $if $if_ip ${if_netmask:+netmask $if_netmask} up + $DEBUG ifconfig $if $if_ip ${if_netmask:+netmask $if_netmask} broadcast + up ${if_gateway:+$DEBUG route add default gw $if_gateway} [ -f /etc/resolv.conf ] && return