netmode: do ubus call commit owsd after writing to owsd config #16739

Daemons such as wifilife are dependent on owsd configuration. Wifilife
was started with the controller running and it was never being stopped,
despite owsd config being changed.
This commit is contained in:
Jakob Olsson 2019-02-25 12:38:25 +01:00
parent e2c49a8945
commit ba336baf46

View file

@ -192,6 +192,9 @@ switch_netmode() {
sync
apply_wet_cfg
#commit owsd to reload all init.d scripts dependent on its config
ubus call uci commit '{"config":"owsd"}'
local reboot=$(uci -q get netmode.$curmode.reboot)
if [ "$reboot" != "0" ]; then