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-a3cf2f4a3e73master
parent
d933a4ee27
commit
5a1be6890b
|
@ -198,9 +198,12 @@ _procd_add_config_trigger() {
|
||||||
_procd_add_reload_trigger() {
|
_procd_add_reload_trigger() {
|
||||||
local script=$(readlink "$initscript")
|
local script=$(readlink "$initscript")
|
||||||
local name=$(basename ${script:-$initscript})
|
local name=$(basename ${script:-$initscript})
|
||||||
|
local file
|
||||||
|
|
||||||
_procd_open_trigger
|
_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
|
_procd_close_trigger
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue