X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/edde8d40b677a02d729e299aa0f986598deb287d..5a7eec1ada3871c5dee91abbb73d593fe3c38c8a:/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