mirror of
https://dev.iopsys.eu/feed/iopsys.git
synced 2025-12-10 07:44:50 +01:00
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:
parent
e2c49a8945
commit
ba336baf46
1 changed files with 3 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue