Changeset 41146


Ignore:
Timestamp:
2014-06-11T19:05:46+02:00 (4 years ago)
Author:
nbd
Message:

procd: allow passing multiple config files to procd_add_reload_trigger

Signed-off-by: Felix Fietkau <nbd@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/package/system/procd/files/procd.sh

    r41031 r41146  
    199199        local script=$(readlink "$initscript") 
    200200        local name=$(basename ${script:-$initscript}) 
     201        local file 
    201202 
    202203        _procd_open_trigger 
    203         _procd_add_config_trigger "config.change" $1 /etc/init.d/$name reload 
     204        for file in "$@"; do 
     205                _procd_add_config_trigger "config.change" "$file" /etc/init.d/$name reload 
     206        done 
    204207        _procd_close_trigger 
    205208} 
Note: See TracChangeset for help on using the changeset viewer.