diff options
author | Steven Barth <cyrus@openwrt.org> | 2014-10-09 07:38:25 +0000 |
---|---|---|
committer | Steven Barth <cyrus@openwrt.org> | 2014-10-09 07:38:25 +0000 |
commit | aad6cb99cfca296a3d5fe53f408ccd9ce55e58ea (patch) | |
tree | d1de79f0e60bcf02852d1ae8048dc6859043be24 /package/network/services/ppp/files/lib | |
parent | 3f700643fa187fcaf953c5993f3deddf6546847b (diff) | |
download | master-31e0f0ae-aad6cb99cfca296a3d5fe53f408ccd9ce55e58ea.tar.gz master-31e0f0ae-aad6cb99cfca296a3d5fe53f408ccd9ce55e58ea.tar.bz2 master-31e0f0ae-aad6cb99cfca296a3d5fe53f408ccd9ce55e58ea.zip |
ppp: add unconditional autoipv6-trigger
SVN-Revision: 42860
Diffstat (limited to 'package/network/services/ppp/files/lib')
-rwxr-xr-x | package/network/services/ppp/files/lib/netifd/ppp-up | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/package/network/services/ppp/files/lib/netifd/ppp-up b/package/network/services/ppp/files/lib/netifd/ppp-up index fa14550ec4..f9bfe62383 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 |