aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2014-06-11 17:05:46 +0000
committerFelix Fietkau <nbd@openwrt.org>2014-06-11 17:05:46 +0000
commit5a1be6890b6bf1185928e86134fca266855a2020 (patch)
tree55244e2bfb37f12042ff9cec813c30101f844c9f
parentd933a4ee277e2ee6fe0d94b60b8ee547bee5ef0d (diff)
downloadupstream-5a1be6890b6bf1185928e86134fca266855a2020.tar.gz
upstream-5a1be6890b6bf1185928e86134fca266855a2020.tar.bz2
upstream-5a1be6890b6bf1185928e86134fca266855a2020.zip
procd: allow passing multiple config files to procd_add_reload_trigger
Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41146 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rw-r--r--package/system/procd/files/procd.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/package/system/procd/files/procd.sh b/package/system/procd/files/procd.sh
index 228652db97..785b6ce0ca 100644
--- a/package/system/procd/files/procd.sh
+++ b/package/system/procd/files/procd.sh
@@ -198,9 +198,12 @@ _procd_add_config_trigger() {
_procd_add_reload_trigger() {
local script=$(readlink "$initscript")
local name=$(basename ${script:-$initscript})
+ local file
_procd_open_trigger
- _procd_add_config_trigger "config.change" $1 /etc/init.d/$name reload
+ for file in "$@"; do
+ _procd_add_config_trigger "config.change" "$file" /etc/init.d/$name reload
+ done
_procd_close_trigger
}