From: Steven Barth Date: Fri, 17 Apr 2015 14:47:12 +0000 (+0000) Subject: network: also shorten virtual interface names of ppp and 3g/4g connections X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=0d1b5a1fd2359949cd7b3cddce76f6f248758ed9;p=openwrt%2Fstaging%2Frmilecki.git network: also shorten virtual interface names of ppp and 3g/4g connections Signed-off-by: Steven Barth SVN-Revision: 45479 --- diff --git a/package/network/services/ppp/files/lib/netifd/ppp-up b/package/network/services/ppp/files/lib/netifd/ppp-up index f9bfe623837..105ecbe8445 100755 --- a/package/network/services/ppp/files/lib/netifd/ppp-up +++ b/package/network/services/ppp/files/lib/netifd/ppp-up @@ -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 diff --git a/package/network/utils/comgt/files/directip.sh b/package/network/utils/comgt/files/directip.sh index a633fa2e152..66d92a7c2cc 100644 --- a/package/network/utils/comgt/files/directip.sh +++ b/package/network/utils/comgt/files/directip.sh @@ -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)" diff --git a/package/network/utils/comgt/files/ncm.sh b/package/network/utils/comgt/files/ncm.sh index 4c3f161f98a..6546691b1aa 100644 --- a/package/network/utils/comgt/files/ncm.sh +++ b/package/network/utils/comgt/files/ncm.sh @@ -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)" diff --git a/package/network/utils/umbim/files/lib/netifd/proto/mbim.sh b/package/network/utils/umbim/files/lib/netifd/proto/mbim.sh index 010a3a25276..461e5fa20c9 100755 --- a/package/network/utils/umbim/files/lib/netifd/proto/mbim.sh +++ b/package/network/utils/umbim/files/lib/netifd/proto/mbim.sh @@ -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)" diff --git a/package/network/utils/uqmi/files/lib/netifd/proto/qmi.sh b/package/network/utils/uqmi/files/lib/netifd/proto/qmi.sh index ae6aa730a6f..9ae60169ea9 100755 --- a/package/network/utils/uqmi/files/lib/netifd/proto/qmi.sh +++ b/package/network/utils/uqmi/files/lib/netifd/proto/qmi.sh @@ -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