applications/ffwizard: Check if services are executable before reloading them
This commit is contained in:
parent
ad44fb2814
commit
4957eed8e8
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue