summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Fainelli <florian@openwrt.org>2011-01-27 21:49:50 +0000
committerFlorian Fainelli <florian@openwrt.org>2011-01-27 21:49:50 +0000
commite85bbb37d5629cd15b8b0f8a8cd5dfb68022386b (patch)
treead3692fe718042ac31365c2be5d76fe245e36a44
parentd7fe921089b270c2fa7ab790ce2100177a313fed (diff)
downloadmtk-20170518-e85bbb37d5629cd15b8b0f8a8cd5dfb68022386b.zip
mtk-20170518-e85bbb37d5629cd15b8b0f8a8cd5dfb68022386b.tar.gz
mtk-20170518-e85bbb37d5629cd15b8b0f8a8cd5dfb68022386b.tar.bz2
admswconfig: reset interface after applying config
Signed-off-by: Alexey Torkhov <atorkhov@gmail.com> SVN-Revision: 25173
-rw-r--r--package/admswconfig/files/admswswitch.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/package/admswconfig/files/admswswitch.sh b/package/admswconfig/files/admswswitch.sh
index 32a60a8..984d7ee 100644
--- a/package/admswconfig/files/admswswitch.sh
+++ b/package/admswconfig/files/admswswitch.sh
@@ -4,7 +4,9 @@
setup_switch_vlan() {
config_get ports "$CONFIG_SECTION" "eth$1"
ports=`echo "$ports"| sed s/" "/""/g`
+ ifconfig eth$1 down
admswconfig eth$1 ${ports}c
+ ifconfig eth$1 up
}
setup_switch() {