applications/ffwizard: Reload services instead of rebooting the router
This commit is contained in:
parent
0f4a0cd85a
commit
ad44fb2814
1 changed files with 3 additions and 3 deletions
|
@ -602,9 +602,9 @@ function f.handle(self, state, data)
|
||||||
if has_radvd then
|
if has_radvd then
|
||||||
uci:commit("radvd")
|
uci:commit("radvd")
|
||||||
end
|
end
|
||||||
-- the following line didn't work without admin-mini, for now i just replaced it with sys.exec... soma
|
|
||||||
-- luci.http.redirect(luci.dispatcher.build_url(unpack(luci.dispatcher.context.requested.path), "system", "reboot") .. "?reboot=1")
|
sys.exec("for s in network dnsmasq luci_splash firewall uhttpd olsrd radvd l2gvpn; do /etc/init.d/$s restart;done > /dev/null &")
|
||||||
sys.exec("reboot")
|
luci.http.redirect(luci.dispatcher.build_url(luci.dispatcher.context.path[1], "freifunk", "ffwizard"))
|
||||||
end
|
end
|
||||||
return false
|
return false
|
||||||
elseif state == FORM_INVALID then
|
elseif state == FORM_INVALID then
|
||||||
|
|
Loading…
Reference in a new issue