summaryrefslogtreecommitdiffstats
path: root/package/network/utils
diff options
context:
space:
mode:
authorSteven Barth <cyrus@openwrt.org>2015-04-17 14:47:12 +0000
committerSteven Barth <cyrus@openwrt.org>2015-04-17 14:47:12 +0000
commit0d1b5a1fd2359949cd7b3cddce76f6f248758ed9 (patch)
tree6b86d06e139ed5ac470700f66591370e98e366a5 /package/network/utils
parent22045c383dc32f620a5da8909a98a58320926e02 (diff)
downloadmaster-31e0f0ae-0d1b5a1fd2359949cd7b3cddce76f6f248758ed9.tar.gz
master-31e0f0ae-0d1b5a1fd2359949cd7b3cddce76f6f248758ed9.tar.bz2
master-31e0f0ae-0d1b5a1fd2359949cd7b3cddce76f6f248758ed9.zip
network: also shorten virtual interface names of ppp and 3g/4g connections
Signed-off-by: Steven Barth <steven@midlink.org> SVN-Revision: 45479
Diffstat (limited to 'package/network/utils')
-rw-r--r--package/network/utils/comgt/files/directip.sh4
-rw-r--r--package/network/utils/comgt/files/ncm.sh4
-rwxr-xr-xpackage/network/utils/umbim/files/lib/netifd/proto/mbim.sh4
-rwxr-xr-xpackage/network/utils/uqmi/files/lib/netifd/proto/qmi.sh4
4 files changed, 8 insertions, 8 deletions
diff --git a/package/network/utils/comgt/files/directip.sh b/package/network/utils/comgt/files/directip.sh
index a633fa2e15..66d92a7c2c 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 4c3f161f98..6546691b1a 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 010a3a2527..461e5fa20c 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 ae6aa730a6..9ae60169ea 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