network: also shorten virtual interface names of ppp and 3g/4g connections
[openwrt/.git] / package / network / utils / comgt / files / directip.sh
index a633fa2e152ef08cfcfde67ab5ab8069fc89d2a9..66d92a7c2cc7d9fbbb379e5ae07a4eac0934b15e 100644 (file)
@@ -77,13 +77,13 @@ proto_directip_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)"