5 config_get init "$1" init
6 config_get exec "$1" exec
7 config_get test "$1" test
9 echo "$2" > "/var/run/luci-reload-status"
11 [ -n "$init" ] && reload_init "$2" "$init" "$test"
12 [ -n "$exec" ] && reload_exec "$2" "$exec" "$test"
17 echo "Reloading $1... "
19 [ -n "$3" -a "$?" != "$3" ] && echo '!!! Failed to reload' $1 '!!!'
24 [ -x /etc/init.d/$2 ] && /etc/init.d/$2 enabled && {
25 echo "Reloading $1... "
26 /etc/init.d/$2 reload >/dev/null 2>&1
27 [ -n "$3" -a "$?" != "$3" ] && echo '!!! Failed to reload' $1 '!!!'
31 lock "/var/run/luci-reload"
36 config_foreach apply_config $i $i
39 rm -f "/var/run/luci-reload-status"
40 lock -u "/var/run/luci-reload"