Skip to content
Snippets Groups Projects
Commit 3328763a authored by nbd's avatar nbd
Browse files

netifd: initialize the switch early at start time and on reload (fixes #13015)


Signed-off-by: default avatarFelix Fietkau <nbd@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39183 3c298f89-4303-0410-b956-a3cf2f4a3e73
parent 56688626
No related branches found
No related tags found
No related merge requests found
......@@ -5,7 +5,16 @@ STOP=90
USE_PROCD=1
init_switch() {
setup_switch() { return 0; }
include /lib/network
setup_switch
}
start_service() {
init_switch
procd_open_instance
procd_set_param command /sbin/netifd
procd_set_param respawn
......@@ -17,6 +26,7 @@ start_service() {
}
reload_service() {
init_switch
ubus call network reload
/sbin/wifi reload_legacy
}
......@@ -26,13 +36,7 @@ stop_service() {
}
service_running() {
setup_switch() { return 0; }
include /lib/network
setup_switch
sleep 5
/sbin/wifi reload_legacy
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment