mirror of
https://github.com/openwrt/openwrt.git
synced 2025-03-28 06:39:08 +00:00
admswconfig: reset interface after applying config
Signed-off-by: Alexey Torkhov <atorkhov@gmail.com> SVN-Revision: 25173
This commit is contained in:
parent
d7fe921089
commit
e85bbb37d5
@ -4,7 +4,9 @@
|
|||||||
setup_switch_vlan() {
|
setup_switch_vlan() {
|
||||||
config_get ports "$CONFIG_SECTION" "eth$1"
|
config_get ports "$CONFIG_SECTION" "eth$1"
|
||||||
ports=`echo "$ports"| sed s/" "/""/g`
|
ports=`echo "$ports"| sed s/" "/""/g`
|
||||||
|
ifconfig eth$1 down
|
||||||
admswconfig eth$1 ${ports}c
|
admswconfig eth$1 ${ports}c
|
||||||
|
ifconfig eth$1 up
|
||||||
}
|
}
|
||||||
|
|
||||||
setup_switch() {
|
setup_switch() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user