network: also shorten virtual interface names of ppp and 3g/4g connections
[openwrt/svn-archive/archive.git] / package / network / services / ppp / files / lib / netifd / ppp-up
index fa14550ec40b3008393f58908b344d6d53d21157..105ecbe8445ccd2e13f18bf6572ae913e6bb9c4f 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}_6"
+       json_add_string ifname "@$PPP_IPPARAM"
+       json_add_string proto "dhcpv6"
+       json_close_object
+       ubus call network add_dynamic "$(json_dump)"
+fi