X-Git-Url: http://git.ozo.com/?a=blobdiff_plain;f=root%2Fetc%2Ffunctions.sh;fp=root%2Fetc%2Ffunctions.sh;h=1f9afb2948a04f0fa235e37007ff6d5480d3c498;hb=4e37810ea162d05995404aad85cf12d8ab4b2278;hp=09ba6feea2ade217ac100d7c2bcb921ca4a1c7df;hpb=8644dc002393b50d49ec451fb7dd7c057d21cbfa;p=openwrt-10.03%2F.git diff --git a/root/etc/functions.sh b/root/etc/functions.sh index 09ba6feea..1f9afb294 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