diff options
author | Florian Fainelli <florian@openwrt.org> | 2007-11-16 07:27:59 +0000 |
---|---|---|
committer | Florian Fainelli <florian@openwrt.org> | 2007-11-16 07:27:59 +0000 |
commit | d8faf285a828f0a5fa851505f4482a53763f3dd6 (patch) | |
tree | 6a407608900fb7cd5b06702feaff892febd2b644 /package/base-files | |
parent | 82c697991afd2e814bac2caaa888374269dd1556 (diff) | |
download | mtk-20170518-d8faf285a828f0a5fa851505f4482a53763f3dd6.zip mtk-20170518-d8faf285a828f0a5fa851505f4482a53763f3dd6.tar.gz mtk-20170518-d8faf285a828f0a5fa851505f4482a53763f3dd6.tar.bz2 |
Allow specifying static IPv6 gateways (#2710)
SVN-Revision: 9569
Diffstat (limited to 'package/base-files')
-rwxr-xr-x | package/base-files/files/lib/network/config.sh | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/package/base-files/files/lib/network/config.sh b/package/base-files/files/lib/network/config.sh index 6856582..b8f350d 100755 --- a/package/base-files/files/lib/network/config.sh +++ b/package/base-files/files/lib/network/config.sh @@ -150,12 +150,14 @@ setup_interface() { [ -z "$ipaddr" -o -z "$netmask" ] && [ -z "$ip6addr" ] && return 1 config_get gateway "$config" gateway + config_get ip6gw "$config" ip6gw config_get dns "$config" dns config_get bcast "$config" broadcast [ -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 "$dns" ] || { for ns in $dns; do grep "$ns" /tmp/resolv.conf.auto 2>/dev/null >/dev/null || { |