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 | 11df62d17671534b43595b102189e06d0aed8d82 (patch) | |
tree | a0b9962c93b492348f0e793a60a99b9ffce0279a /package/base-files | |
parent | ee56e9ec59c6f657683cf465da4634bee4822fea (diff) | |
download | mtk-20170518-11df62d17671534b43595b102189e06d0aed8d82.zip mtk-20170518-11df62d17671534b43595b102189e06d0aed8d82.tar.gz mtk-20170518-11df62d17671534b43595b102189e06d0aed8d82.tar.bz2 |
link default routes added by the network scripts to the appropriate interface (#2621)
SVN-Revision: 12027
Diffstat (limited to 'package/base-files')
-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 3d58c63..b3e9fed 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 || { |