From: Manuel Munz Date: Thu, 20 Jan 2011 13:44:01 +0000 (+0000) Subject: applications/ffwizard: Check if services are executable before reloading them X-Git-Tag: 0.11.0~2340 X-Git-Url: https://git.archive.openwrt.org/?p=project%2Fluci.git;a=commitdiff_plain;h=4957eed8e87a5af55599557cab21651b5e745fca applications/ffwizard: Check if services are executable before reloading them --- diff --git a/applications/luci-ffwizard/luasrc/model/cbi/ffwizard.lua b/applications/luci-ffwizard/luasrc/model/cbi/ffwizard.lua index 4138d876f..47118d19b 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