summaryrefslogtreecommitdiff
path: root/package/base-files/files
diff options
context:
space:
mode:
authorFlorian Fainelli <florian@openwrt.org>2006-12-09 16:57:31 +0000
committerFlorian Fainelli <florian@openwrt.org>2006-12-09 16:57:31 +0000
commitcac1789e6ce5fae18a3d8c8698a071e37005c6da (patch)
treecd18ea5ba40e016b4b4a66acf11afba46ec557be /package/base-files/files
parent1ce8e3192bd65f83f083df065c81cab0a95658fe (diff)
downloadmtk-20170518-cac1789e6ce5fae18a3d8c8698a071e37005c6da.zip
mtk-20170518-cac1789e6ce5fae18a3d8c8698a071e37005c6da.tar.gz
mtk-20170518-cac1789e6ce5fae18a3d8c8698a071e37005c6da.tar.bz2
Set up ipv6 address if provided in network configuration (#1028)
SVN-Revision: 5738
Diffstat (limited to 'package/base-files/files')
-rwxr-xr-xpackage/base-files/files/lib/network/config.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/package/base-files/files/lib/network/config.sh b/package/base-files/files/lib/network/config.sh
index 6ddbf9e..845b33e 100755
--- a/package/base-files/files/lib/network/config.sh
+++ b/package/base-files/files/lib/network/config.sh
@@ -118,6 +118,7 @@ setup_interface() {
config_get dns "$config" dns
$DEBUG ifconfig "$iface" "$ipaddr" netmask "$netmask"
+ $DEBUG ifconfig "$iface" inet6 add "$ip6addr"
[ -z "$gateway" ] || route add default gw "$gateway"
[ -z "$dns" -o -f /tmp/resolv.conf ] || {
for ns in $dns; do