summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorflorian <florian@3c298f89-4303-0410-b956-a3cf2f4a3e73>2011-01-27 21:49:50 +0000
committerflorian <florian@3c298f89-4303-0410-b956-a3cf2f4a3e73>2011-01-27 21:49:50 +0000
commitec3c566c7cf5f134a4e14d9bdc5047dc47893180 (patch)
treecebfae7f16b6fc61d8e24453a0517bfd18ddbd24
parent220dd05b3c8b3d1176975cc3ce81ee7c9e8a60ca (diff)
[package] admswconfig: reset interface after applying config
Signed-off-by: Alexey Torkhov <atorkhov@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@25173 3c298f89-4303-0410-b956-a3cf2f4a3e73
-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 32a60a82b..984d7eea7 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() {