ppp: add unconditional autoipv6-trigger
authorSteven Barth <cyrus@openwrt.org>
Thu, 9 Oct 2014 07:38:25 +0000 (07:38 +0000)
committerSteven Barth <cyrus@openwrt.org>
Thu, 9 Oct 2014 07:38:25 +0000 (07:38 +0000)
SVN-Revision: 42860

package/network/services/ppp/files/lib/netifd/ppp-up
package/network/services/ppp/files/ppp.sh

index fa14550ec40b3008393f58908b344d6d53d21157..f9bfe6238370eb7aaa0e1515ddbbe955f723dfae 100755 (executable)
@@ -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
index eb3f069d953b3568b4d5986d3857cfe856b719dd..0456fda5d97e1231f755e6b1b6cd3916138ba05e 100755 (executable)
@@ -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