From c62b07b2ce55b16c976a1b87ca80a39c1127d612 Mon Sep 17 00:00:00 2001 From: Steven Barth Date: Wed, 8 Oct 2014 20:37:15 +0000 Subject: ppp: allow auto-detecting and creation of ipv6 subinterface this makes ipv6 with ppp a bit more comfortable Signed-off-by: Steven Barth SVN-Revision: 42854 --- package/network/services/ppp/files/lib/netifd/ppp-up | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'package/network/services/ppp/files/lib/netifd/ppp-up') 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 -- cgit v1.2.3