From 1301aa5fe9fbc6e5ba008cb2f526e4280e592ca7 Mon Sep 17 00:00:00 2001 From: Florian Fainelli Date: Thu, 27 Jan 2011 21:49:50 +0000 Subject: [package] admswconfig: reset interface after applying config Signed-off-by: Alexey Torkhov git-svn-id: svn://svn.openwrt.org/openwrt/trunk@25173 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- package/admswconfig/files/admswswitch.sh | 2 ++ 1 file changed, 2 insertions(+) (limited to 'package/admswconfig') 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() { -- cgit v1.2.3