Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 39183
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
}
reload_service() {
+ init_switch
ubus call network reload
/sbin/wifi reload_legacy
}
}
service_running() {
- setup_switch() { return 0; }
-
- include /lib/network
- setup_switch
-
sleep 5
-
/sbin/wifi reload_legacy
}