X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/b5c0892412013f36caabd79d239321b77482b57f..b7d3d9d3cef2286b7266dc447265a0a21565b9b9:/package/admswconfig/files/admswswitch.sh?ds=inline diff --git a/package/admswconfig/files/admswswitch.sh b/package/admswconfig/files/admswswitch.sh index 32a60a82b..984d7eea7 100644 --- a/package/admswconfig/files/admswswitch.sh +++ b/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() {