From: Florian Fainelli Date: Thu, 27 Jan 2011 21:49:50 +0000 (+0000) Subject: admswconfig: reset interface after applying config X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=e85bbb37d5629cd15b8b0f8a8cd5dfb68022386b;p=openwrt%2Fstaging%2Fwigyori.git admswconfig: reset interface after applying config Signed-off-by: Alexey Torkhov SVN-Revision: 25173 --- diff --git a/package/admswconfig/files/admswswitch.sh b/package/admswconfig/files/admswswitch.sh index 32a60a82bf..984d7eea79 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() {