From 3da2286b3dd7c48a3bb8866f229a00d862505625 Mon Sep 17 00:00:00 2001 From: Steven Barth Date: Sat, 19 Jul 2008 14:18:03 +0000 Subject: Improved reloading system, fixed a bug with saving network settings --- contrib/package/luci-addons/dist/sbin/luci-reload | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 contrib/package/luci-addons/dist/sbin/luci-reload (limited to 'contrib/package/luci-addons/dist') 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 -- cgit v1.2.3