diff options
author | Felix Fietkau <nbd@openwrt.org> | 2008-07-30 22:49:25 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2008-07-30 22:49:25 +0000 |
commit | 45de55ec4772e68d4fbeaa40384e0347f1f92f31 (patch) | |
tree | 616ca1987efbacbc978e927337b5f3a6f9b286b9 /package/base-files/files/lib/network/config.sh | |
parent | bc658556201283b4226f43de47df6e5b7e6a5870 (diff) | |
download | master-187ad058-45de55ec4772e68d4fbeaa40384e0347f1f92f31.tar.gz master-187ad058-45de55ec4772e68d4fbeaa40384e0347f1f92f31.tar.bz2 master-187ad058-45de55ec4772e68d4fbeaa40384e0347f1f92f31.zip |
link default routes added by the network scripts to the appropriate interface (#2621)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12027 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/base-files/files/lib/network/config.sh')
-rwxr-xr-x | package/base-files/files/lib/network/config.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/package/base-files/files/lib/network/config.sh b/package/base-files/files/lib/network/config.sh index 3d58c63f78..b3e9fed3fb 100755 --- a/package/base-files/files/lib/network/config.sh +++ b/package/base-files/files/lib/network/config.sh @@ -184,8 +184,8 @@ setup_interface() { [ -z "$ipaddr" ] || $DEBUG ifconfig "$iface" "$ipaddr" netmask "$netmask" broadcast "${bcast:-+}" [ -z "$ip6addr" ] || $DEBUG ifconfig "$iface" add "$ip6addr" - [ -z "$gateway" ] || $DEBUG route add default gw "$gateway" - [ -z "$ip6gw" ] || $DEBUG route -A inet6 add default gw "$ip6gw" + [ -z "$gateway" ] || $DEBUG route add default gw "$gateway" dev "$iface" + [ -z "$ip6gw" ] || $DEBUG route -A inet6 add default gw "$ip6gw" dev "$iface" [ -z "$dns" ] || { for ns in $dns; do grep "$ns" /tmp/resolv.conf.auto 2>/dev/null >/dev/null || { |