package: replace ifconfig-usage with ip

Signed-off-by: Steven Barth <steven@midlink.org>

SVN-Revision: 46832
This commit is contained in:
Steven Barth
2015-09-08 17:44:24 +00:00
parent 579fe7f52a
commit e07959cade
7 changed files with 15 additions and 15 deletions

View File

@@ -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() {