summaryrefslogtreecommitdiffhomepage
path: root/contrib
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
parente8191406f8ae291647b564d1d2b3c69fbcd224ab (diff)
Improved reloading system, fixed a bug with saving network settings
Diffstat (limited to 'contrib')
-rw-r--r--contrib/package/luci-addons/Makefile1
-rw-r--r--contrib/package/luci-addons/dist/sbin/luci-reload9
2 files changed, 10 insertions, 0 deletions
diff --git a/contrib/package/luci-addons/Makefile b/contrib/package/luci-addons/Makefile
index e19489058..91943b8da 100644
--- a/contrib/package/luci-addons/Makefile
+++ b/contrib/package/luci-addons/Makefile
@@ -31,6 +31,7 @@ define Package/luci-addons/install
$(INSTALL_BIN) ./dist/usr/bin/run-parts $(1)/usr/bin
$(INSTALL_BIN) ./dist/sbin/luci-flash $(1)/sbin
+ $(INSTALL_BIN) ./dist/sbin/luci-reload $(1)/sbin
$(INSTALL_BIN) ./dist/etc/init.d/luci_fixtime $(1)/etc/init.d
$(INSTALL_BIN) ./dist/etc/init.d/luci_ethers $(1)/etc/init.d
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 000000000..48b6778bc
--- /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