X-Git-Url: http://git.rohieb.name/openwrt.git/blobdiff_plain/edde8d40b677a02d729e299aa0f986598deb287d..237a0a4fd1eacf8f222f4e0a9e011066b80264c4:/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