automatically configure switches when swconfig is installed
SVN-Revision: 15328v19.07.3_mercusys_ac12_duma
parent
6d782f93d8
commit
8bd7b4bb6b
@ -0,0 +1,11 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
# Copyright (C) 2009 OpenWrt.org
|
||||||
|
|
||||||
|
setup_switch_dev() {
|
||||||
|
swconfig dev "$1" load network
|
||||||
|
}
|
||||||
|
|
||||||
|
setup_switch() {
|
||||||
|
config_load network
|
||||||
|
config_foreach setup_switch_dev switch
|
||||||
|
}
|
Loading…
Reference in New Issue