network: also shorten virtual interface names of ppp and 3g/4g connections
authorSteven Barth <cyrus@openwrt.org>
Fri, 17 Apr 2015 14:47:12 +0000 (14:47 +0000)
committerSteven Barth <cyrus@openwrt.org>
Fri, 17 Apr 2015 14:47:12 +0000 (14:47 +0000)
Signed-off-by: Steven Barth <steven@midlink.org>
SVN-Revision: 45479

package/network/services/ppp/files/lib/netifd/ppp-up
package/network/utils/comgt/files/directip.sh
package/network/utils/comgt/files/ncm.sh
package/network/utils/umbim/files/lib/netifd/proto/mbim.sh
package/network/utils/uqmi/files/lib/netifd/proto/qmi.sh

index f9bfe6238370eb7aaa0e1515ddbbe955f723dfae..105ecbe8445ccd2e13f18bf6572ae913e6bb9c4f 100755 (executable)
@@ -22,7 +22,7 @@ proto_send_update "$PPP_IPPARAM"
 
 if [ -n "$AUTOIPV6" ]; then
        json_init
-       json_add_string name "${PPP_IPPARAM}_dhcpv6"
+       json_add_string name "${PPP_IPPARAM}_6"
        json_add_string ifname "@$PPP_IPPARAM"
        json_add_string proto "dhcpv6"
        json_close_object
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)"
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)"
index 010a3a2527621abe7e4725e85e75b5d885fec2d3..461e5fa20c97f8033eeebbb5c68378bb7facb11d 100755 (executable)
@@ -127,14 +127,14 @@ proto_mbim_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"
        json_close_object
        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)"
index ae6aa730a6f3f66db138c4079f9fe44ed59272fe..9ae60169ea98d3d00e296fefc989ff32b46aaaf5 100755 (executable)
@@ -118,14 +118,14 @@ proto_qmi_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"
        json_close_object
        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"
        json_close_object