Browse Source

admswconfig: reset interface after applying config

Signed-off-by: Alexey Torkhov <[email protected]>

SVN-Revision: 25173
Florian Fainelli 14 years ago
parent
commit
e85bbb37d5
1 changed files with 2 additions and 0 deletions
  1. 2 0
      package/admswconfig/files/admswswitch.sh

+ 2 - 0
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() {