[package] admswconfig: reset interface after applying config
authorFlorian Fainelli <florian@openwrt.org>
Thu, 27 Jan 2011 21:49:50 +0000 (21:49 +0000)
committerFlorian Fainelli <florian@openwrt.org>
Thu, 27 Jan 2011 21:49:50 +0000 (21:49 +0000)
Signed-off-by: Alexey Torkhov <atorkhov@gmail.com>
SVN-Revision: 25173

package/admswconfig/files/admswswitch.sh

index 32a60a8..984d7ee 100644 (file)
@@ -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() {