diff options
author | Steven Barth <steven@midlink.org> | 2014-10-08 20:37:15 +0000 |
---|---|---|
committer | Steven Barth <steven@midlink.org> | 2014-10-08 20:37:15 +0000 |
commit | 6c80ad928899a8e2df77a66c9cba673b9c792c0f (patch) | |
tree | 0b700db5edb9685d3bbddda593b5406db34d5b52 /package/network/services/ppp/files/lib/netifd/ppp-up | |
parent | 495408914924fb185c49262f045aa91b7abd953d (diff) | |
download | upstream-6c80ad928899a8e2df77a66c9cba673b9c792c0f.tar.gz upstream-6c80ad928899a8e2df77a66c9cba673b9c792c0f.tar.bz2 upstream-6c80ad928899a8e2df77a66c9cba673b9c792c0f.zip |
ppp: allow auto-detecting and creation of ipv6 subinterface
this makes ipv6 with ppp a bit more comfortable
Signed-off-by: Steven Barth <steven@midlink.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42854 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/network/services/ppp/files/lib/netifd/ppp-up')
-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..286fc5f834 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 "$IPV6IFACE" -a "$(ifstatus $IPV6IFACE | jsonfilter -e @.device)" != "$IFNAME" ]; 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 |