From: Felix Fietkau Date: Wed, 11 Jun 2014 17:05:46 +0000 (+0000) Subject: procd: allow passing multiple config files to procd_add_reload_trigger X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=79bbc4fbfb647185bc189fc9ca7585d388abc4a6;p=openwrt%2Fstaging%2Frobimarko.git procd: allow passing multiple config files to procd_add_reload_trigger Signed-off-by: Felix Fietkau SVN-Revision: 41146 --- 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 }