diff options
author | Steven Barth <steven@midlink.org> | 2015-04-17 14:47:12 +0000 |
---|---|---|
committer | Steven Barth <steven@midlink.org> | 2015-04-17 14:47:12 +0000 |
commit | 0699cfb2e52d5bdfb0d41497fa28586916af05e6 (patch) | |
tree | 28d369fb2770ea8152bf55468ba9b40311798d68 /package/network/utils/comgt | |
parent | 70a75d6f0c9720e8f116e96de8626d2f3e91a7f8 (diff) | |
download | master-187ad058-0699cfb2e52d5bdfb0d41497fa28586916af05e6.tar.gz master-187ad058-0699cfb2e52d5bdfb0d41497fa28586916af05e6.tar.bz2 master-187ad058-0699cfb2e52d5bdfb0d41497fa28586916af05e6.zip |
network: also shorten virtual interface names of ppp and 3g/4g connections
Signed-off-by: Steven Barth <steven@midlink.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45479 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/network/utils/comgt')
-rw-r--r-- | package/network/utils/comgt/files/directip.sh | 4 | ||||
-rw-r--r-- | package/network/utils/comgt/files/ncm.sh | 4 |
2 files changed, 4 insertions, 4 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)" |