X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/42c72797dc387629e5755cbac7dba2c4604aef53..ddc9278d09957a5c6cb27ad0ca696f096476e38a:/package/admswconfig/files/admswswitch.sh?ds=sidebyside diff --git a/package/admswconfig/files/admswswitch.sh b/package/admswconfig/files/admswswitch.sh index c5898d5a3..984d7eea7 100644 --- a/package/admswconfig/files/admswswitch.sh +++ b/package/admswconfig/files/admswswitch.sh @@ -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() {