X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/edde8d40b677a02d729e299aa0f986598deb287d..841a64997f6de6f0144b07442c36c4886d61bf72:/root/sbin/ifup diff --git a/root/sbin/ifup b/root/sbin/ifup index 75ce15684..34e19af3f 100755 --- a/root/sbin/ifup +++ b/root/sbin/ifup @@ -34,7 +34,7 @@ netmask=$(nvram_get ${type}_netmask) gateway=$(nvram_get ${type}_gateway) - $DEBUG ifconfig $if $if_ip ${netmask:+netmask $netmask} broadcast + up + $DEBUG ifconfig $if $ip ${netmask:+netmask $netmask} broadcast + up ${gateway:+$DEBUG route add default gw $gateway} [ -f /etc/resolv.conf ] && return