summaryrefslogtreecommitdiffhomepage
path: root/modules
diff options
context:
space:
mode:
authorFlorian Eckert <fe@dev.tdt.de>2024-04-11 11:54:31 +0200
committerFlorian Eckert <fe@dev.tdt.de>2024-04-11 16:15:12 +0200
commit411e78fc85f59e93f3e89eb829c8e7b05c431932 (patch)
tree880071e2e57e21ce60d1b755d5c7c811639fbf9f /modules
parenta55b601f3747392947cdd9894c2e63f609d0bb4f (diff)
luci-base: delete unused luci-reload command
This script is no longer needed and can therefore be deleted. Signed-off-by: Florian Eckert <fe@dev.tdt.de>
Diffstat (limited to 'modules')
-rwxr-xr-xmodules/luci-base/root/sbin/luci-reload45
1 files changed, 0 insertions, 45 deletions
diff --git a/modules/luci-base/root/sbin/luci-reload b/modules/luci-base/root/sbin/luci-reload
deleted file mode 100755
index cc41da2bb7..0000000000
--- a/modules/luci-base/root/sbin/luci-reload
+++ /dev/null
@@ -1,45 +0,0 @@
-#!/bin/sh
-. /lib/functions.sh
-
-apply_config() {
- config_get init "$1" init
- config_get exec "$1" exec
- config_get test "$1" test
-
- echo "$2" > "/var/run/luci-reload-status"
-
- [ -n "$init" ] && reload_init "$2" "$init" "$test"
- [ -n "$exec" ] && reload_exec "$2" "$exec" "$test"
-}
-
-reload_exec() {
- local service="$1"
- local ok="$3"
- set -- $2
- local cmd="$1"; shift
-
- [ -x "$cmd" ] && {
- echo "Reloading $service... "
- ( $cmd "$@" ) 2>/dev/null 1>&2
- [ -n "$ok" -a "$?" != "$ok" ] && echo '!!! Failed to reload' $service '!!!'
- }
-}
-
-reload_init() {
- [ -x /etc/init.d/$2 ] && /etc/init.d/$2 enabled && {
- echo "Reloading $1... "
- /etc/init.d/$2 reload >/dev/null 2>&1
- [ -n "$3" -a "$?" != "$3" ] && echo '!!! Failed to reload' $1 '!!!'
- }
-}
-
-lock "/var/run/luci-reload"
-
-config_load ucitrack
-
-for i in $*; do
- config_foreach apply_config $i $i
-done
-
-rm -f "/var/run/luci-reload-status"
-lock -u "/var/run/luci-reload"