network: also shorten virtual interface names of ppp and 3g/4g connections
[openwrt/staging/rmilecki.git] / package / network / utils / comgt / files / ncm.sh
index 4c3f161f98a5c33d34b69b7713740a638e286fc3..6546691b1aafeacbfa345dd983c3f4fad3691639 100644 (file)
@@ -120,13 +120,13 @@ proto_ncm_setup() {
        proto_send_update "$interface"
 
        json_init
-       json_add_string name "${interface}_dhcp"
+       json_add_string name "${interface}_4"
        json_add_string ifname "@$interface"
        json_add_string proto "dhcp"
        ubus call network add_dynamic "$(json_dump)"
 
        json_init
-       json_add_string name "${interface}_dhcpv6"
+       json_add_string name "${interface}_6"
        json_add_string ifname "@$interface"
        json_add_string proto "dhcpv6"
        ubus call network add_dynamic "$(json_dump)"