aboutsummaryrefslogtreecommitdiffstats
path: root/package/base-files/files
diff options
context:
space:
mode:
authorFlorian Fainelli <florian@openwrt.org>2007-11-16 07:27:59 +0000
committerFlorian Fainelli <florian@openwrt.org>2007-11-16 07:27:59 +0000
commitdb937a2c6c73c7818011f07ae53fc9f68713232c (patch)
treeb0c782ad01d576eaaa99260eaf4e0cc2c68a75e5 /package/base-files/files
parent750d5aff11daad0aa56b548675400a58c8af7836 (diff)
downloadupstream-db937a2c6c73c7818011f07ae53fc9f68713232c.tar.gz
upstream-db937a2c6c73c7818011f07ae53fc9f68713232c.tar.bz2
upstream-db937a2c6c73c7818011f07ae53fc9f68713232c.zip
Allow specifying static IPv6 gateways (#2710)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@9569 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/base-files/files')
-rwxr-xr-xpackage/base-files/files/lib/network/config.sh2
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 6856582974..b8f350de84 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 || {