From e07959cade0eba1c85a76d76a1a673363c9f55fb Mon Sep 17 00:00:00 2001 From: Steven Barth Date: Tue, 8 Sep 2015 17:44:24 +0000 Subject: package: replace ifconfig-usage with ip Signed-off-by: Steven Barth SVN-Revision: 46832 --- package/utils/admswconfig/files/admswswitch.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'package/utils') 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() { -- cgit v1.2.3