aboutsummaryrefslogtreecommitdiffstats
path: root/package/utils/admswconfig
diff options
context:
space:
mode:
Diffstat (limited to 'package/utils/admswconfig')
-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() {