lantiq: Tune the XWAY subtarget cflags
[openwrt/openwrt.git] / package / admswconfig / files / admswswitch.sh
index c5898d5a392fd339a583fc39a3a9d702d6f30cc8..984d7eea791fb24f780c2d8285b4ee3c7cb00ad3 100644 (file)
@@ -3,7 +3,10 @@
 
 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() {