git.99rst.org
/
openwrt-luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
| inline |
side by side
(parent:
ad44fb2
)
applications/ffwizard: Check if services are executable before reloading them
author
Manuel Munz
<redacted>
Thu, 20 Jan 2011 13:44:01 +0000
(13:44 +0000)
committer
Manuel Munz
<redacted>
Thu, 20 Jan 2011 13:44:01 +0000
(13:44 +0000)
applications/luci-ffwizard/luasrc/model/cbi/ffwizard.lua
patch
|
blob
|
history
diff --git
a/applications/luci-ffwizard/luasrc/model/cbi/ffwizard.lua
b/applications/luci-ffwizard/luasrc/model/cbi/ffwizard.lua
index 4138d876fdb5283cd1aa2a996c2bdf782e754e67..47118d19b7a4a73a7c58d2ebb54839bb42bf267e 100644
(file)
--- 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
git clone https://git.99rst.org/PROJECT