summaryrefslogtreecommitdiff
path: root/package
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
commit79bbc4fbfb647185bc189fc9ca7585d388abc4a6 (patch)
treed39f223584514746bafdefb1b15858d14ee609f2 /package
parent231f15c9db32080cc1f06321f09da184b1b25575 (diff)
downloadmtk-20170518-79bbc4fbfb647185bc189fc9ca7585d388abc4a6.zip
mtk-20170518-79bbc4fbfb647185bc189fc9ca7585d388abc4a6.tar.gz
mtk-20170518-79bbc4fbfb647185bc189fc9ca7585d388abc4a6.tar.bz2
procd: allow passing multiple config files to procd_add_reload_trigger
Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 41146
Diffstat (limited to 'package')
-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 228652d..785b6ce 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
}