summaryrefslogtreecommitdiffhomepage
path: root/contrib/package/luci-addons/dist
diff options
context:
space:
mode:
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