summaryrefslogtreecommitdiff
path: root/package
diff options
context:
space:
mode:
authorSteven Barth <cyrus@openwrt.org>2014-10-09 07:38:25 +0000
committerSteven Barth <cyrus@openwrt.org>2014-10-09 07:38:25 +0000
commitaad6cb99cfca296a3d5fe53f408ccd9ce55e58ea (patch)
treed1de79f0e60bcf02852d1ae8048dc6859043be24 /package
parent3f700643fa187fcaf953c5993f3deddf6546847b (diff)
downloadmtk-20170518-aad6cb99cfca296a3d5fe53f408ccd9ce55e58ea.zip
mtk-20170518-aad6cb99cfca296a3d5fe53f408ccd9ce55e58ea.tar.gz
mtk-20170518-aad6cb99cfca296a3d5fe53f408ccd9ce55e58ea.tar.bz2
ppp: add unconditional autoipv6-trigger
SVN-Revision: 42860
Diffstat (limited to 'package')
-rwxr-xr-xpackage/network/services/ppp/files/lib/netifd/ppp-up9
-rwxr-xr-xpackage/network/services/ppp/files/ppp.sh2
2 files changed, 10 insertions, 1 deletions
diff --git a/package/network/services/ppp/files/lib/netifd/ppp-up b/package/network/services/ppp/files/lib/netifd/ppp-up
index fa14550..f9bfe62 100755
--- a/package/network/services/ppp/files/lib/netifd/ppp-up
+++ b/package/network/services/ppp/files/lib/netifd/ppp-up
@@ -19,3 +19,12 @@ proto_send_update "$PPP_IPPARAM"
[ -x "$SCRIPT" ] && "$SCRIPT" "$@"
done
}
+
+if [ -n "$AUTOIPV6" ]; then
+ json_init
+ json_add_string name "${PPP_IPPARAM}_dhcpv6"
+ json_add_string ifname "@$PPP_IPPARAM"
+ json_add_string proto "dhcpv6"
+ json_close_object
+ ubus call network add_dynamic "$(json_dump)"
+fi
diff --git a/package/network/services/ppp/files/ppp.sh b/package/network/services/ppp/files/ppp.sh
index eb3f069..0456fda 100755
--- a/package/network/services/ppp/files/ppp.sh
+++ b/package/network/services/ppp/files/ppp.sh
@@ -30,7 +30,7 @@ ppp_generic_setup() {
ipv6=""
elif [ -z "$ipv6" -o "$ipv6" = auto ]; then
ipv6=1
- proto_export "IPV6IFACE=${config}6"
+ proto_export "AUTOIPV6=1"
fi
if [ "${demand:-0}" -gt 0 ]; then