summaryrefslogtreecommitdiffhomepage
path: root/contrib/package/luci-addons/dist
diff options
context:
space:
mode:
authorSteven Barth <steven@midlink.org>2008-07-19 14:18:03 +0000
committerSteven Barth <steven@midlink.org>2008-07-19 14:18:03 +0000
commit3da2286b3dd7c48a3bb8866f229a00d862505625 (patch)
tree1a4509b121f88c309d3cf91222d74c333a8539e5 /contrib/package/luci-addons/dist
parente8191406f8ae291647b564d1d2b3c69fbcd224ab (diff)
Improved reloading system, fixed a bug with saving network settings
Diffstat (limited to 'contrib/package/luci-addons/dist')
-rw-r--r--contrib/package/luci-addons/dist/sbin/luci-reload9
1 files changed, 9 insertions, 0 deletions
diff --git a/contrib/package/luci-addons/dist/sbin/luci-reload b/contrib/package/luci-addons/dist/sbin/luci-reload
new file mode 100644
index 0000000000..48b6778bc7
--- /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