mirror of
https://git.openwrt.org/openwrt/openwrt.git
synced 2026-05-04 17:36:12 +02:00
procd: add support for multiple arguments to procd_add_reload_data_trigger
This allows triggering on multiple types of procd data changes for config reload. Signed-off-by: Felix Fietkau <nbd@nbd.name>
This commit is contained in:
parent
55a6831eee
commit
95e2b3e9b8
@ -335,7 +335,9 @@ _procd_add_reload_data_trigger() {
|
||||
local name=$(basename ${script:-$initscript})
|
||||
|
||||
_procd_open_trigger
|
||||
_procd_add_data_trigger $1 /etc/init.d/$name reload
|
||||
for t in "$@"; do
|
||||
_procd_add_data_trigger "$t" /etc/init.d/$name reload
|
||||
done
|
||||
_procd_close_trigger
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user