summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-ffwizard/luasrc/model
diff options
context:
space:
mode:
Diffstat (limited to 'applications/luci-ffwizard/luasrc/model')
-rw-r--r--applications/luci-ffwizard/luasrc/model/cbi/ffwizard.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/applications/luci-ffwizard/luasrc/model/cbi/ffwizard.lua b/applications/luci-ffwizard/luasrc/model/cbi/ffwizard.lua
index 4138d876fd..47118d19b7 100644
--- a/applications/luci-ffwizard/luasrc/model/cbi/ffwizard.lua
+++ b/applications/luci-ffwizard/luasrc/model/cbi/ffwizard.lua
@@ -603,7 +603,7 @@ function f.handle(self, state, data)
uci:commit("radvd")
end
- 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("for s in network dnsmasq luci_splash firewall uhttpd olsrd radvd l2gvpn; do [ -x /etc/init.d/$s ] && /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