fix broken init file and some cleanup
[openwrt/svn-archive/archive.git] / package / admswconfig / files / admswswitch.sh
index c5898d5a392fd339a583fc39a3a9d702d6f30cc8..32a60a82bf2f191a6564ae0773aefcb95d649d30 100644 (file)
@@ -3,6 +3,7 @@
 
 setup_switch_vlan() {
        config_get ports "$CONFIG_SECTION" "eth$1"
+       ports=`echo "$ports"| sed s/" "/""/g`
        admswconfig eth$1 ${ports}c
 }