projects
/
project
/
luci.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Improved reloading system, fixed a bug with saving network settings
[project/luci.git]
/
contrib
/
package
/
luci-addons
/
dist
/
sbin
/
luci-reload
diff --git a/contrib/package/luci-addons/dist/sbin/luci-reload
b/contrib/package/luci-addons/dist/sbin/luci-reload
new file mode 100644
(file)
index 0000000..
48b6778
--- /dev/null
+++ b/
contrib/package/luci-addons/dist/sbin/luci-reload
@@ -0,0
+1,9
@@
+#!/bin/sh
+
+for i in $*
+do
+ [ -x /etc/init.d/$i ] && {
+ echo -n "Reloading $i... "
+ /etc/init.d/$i restart >/dev/null 2>&1 && echo "done." || echo "failed!"
+ }
+done
\ No newline at end of file