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