diff options
author | Manuel Munz <freifunk@somakoma.de> | 2011-01-20 13:38:40 +0000 |
---|---|---|
committer | Manuel Munz <freifunk@somakoma.de> | 2011-01-20 13:38:40 +0000 |
commit | ad44fb2814afdec99b496329bd8963b98b26c47c (patch) | |
tree | 835e0a37c5289a2b42973296552529711f966872 | |
parent | 0f4a0cd85adb7116714ac3a9ea37a82f070125f1 (diff) |
applications/ffwizard: Reload services instead of rebooting the router
-rw-r--r-- | applications/luci-ffwizard/luasrc/model/cbi/ffwizard.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/applications/luci-ffwizard/luasrc/model/cbi/ffwizard.lua b/applications/luci-ffwizard/luasrc/model/cbi/ffwizard.lua index 73ec41e7e..4138d876f 100644 --- a/applications/luci-ffwizard/luasrc/model/cbi/ffwizard.lua +++ b/applications/luci-ffwizard/luasrc/model/cbi/ffwizard.lua @@ -602,9 +602,9 @@ function f.handle(self, state, data) if has_radvd then uci:commit("radvd") 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("reboot") + + sys.exec("for s in network dnsmasq luci_splash firewall uhttpd olsrd radvd l2gvpn; do /etc/init.d/$s restart;done > /dev/null &") + luci.http.redirect(luci.dispatcher.build_url(luci.dispatcher.context.path[1], "freifunk", "ffwizard")) end return false elseif state == FORM_INVALID then |