aboutsummaryrefslogtreecommitdiffstats
path: root/package/utils/admswconfig/files
diff options
context:
space:
mode:
authorSteven Barth <cyrus@openwrt.org>2015-09-08 17:44:24 +0000
committerSteven Barth <cyrus@openwrt.org>2015-09-08 17:44:24 +0000
commite07959cade0eba1c85a76d76a1a673363c9f55fb (patch)
treea67502d0f73e9016128f70254b142e3326663423 /package/utils/admswconfig/files
parent579fe7f52ab6c6d6ec6087901f8e5514cea4b4e8 (diff)
downloadupstream-e07959cade0eba1c85a76d76a1a673363c9f55fb.tar.gz
upstream-e07959cade0eba1c85a76d76a1a673363c9f55fb.tar.bz2
upstream-e07959cade0eba1c85a76d76a1a673363c9f55fb.zip
package: replace ifconfig-usage with ip
Signed-off-by: Steven Barth <steven@midlink.org> SVN-Revision: 46832
Diffstat (limited to 'package/utils/admswconfig/files')
-rw-r--r--package/utils/admswconfig/files/admswswitch.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/package/utils/admswconfig/files/admswswitch.sh b/package/utils/admswconfig/files/admswswitch.sh
index 984d7eea79..3b8aabf34d 100644
--- a/package/utils/admswconfig/files/admswswitch.sh
+++ b/package/utils/admswconfig/files/admswswitch.sh
@@ -4,9 +4,9 @@
setup_switch_vlan() {
config_get ports "$CONFIG_SECTION" "eth$1"
ports=`echo "$ports"| sed s/" "/""/g`
- ifconfig eth$1 down
+ ip link set dev eth$1 down
admswconfig eth$1 ${ports}c
- ifconfig eth$1 up
+ ip link set dev eth$1 up
}
setup_switch() {