diff options
author | Christian Hesse <mail@eworm.de> | 2024-03-08 09:33:17 +0100 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2024-03-12 20:36:21 +0100 |
commit | a7cb3e520a86b44cb6e1bdfdf6df24856274e0e3 (patch) | |
tree | 6527b4ebc820bc63e80687333ae4eee3399a1e45 /global-config.rsc | |
parent | e39e8a00834192211999b89f5f163a35c2214707 (diff) |
global-config: support loading snippetschange-122
This adds support for loading snippets, which need a name starting with
"global-config-overlay.d/". This allows to split off configuration if
desired.
Diffstat (limited to 'global-config.rsc')
-rw-r--r-- | global-config.rsc | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/global-config.rsc b/global-config.rsc index 983eedb..85731c3 100644 --- a/global-config.rsc +++ b/global-config.rsc @@ -250,3 +250,13 @@ } on-error={ :log error ("Loading configuration from overlay failed!"); } + +# configuration overlay snippets +:foreach Script in=[ /system/script/find where name ~ "^global-config-overlay.d/" ] do={ + :do { + /system/script/run $Script; + } on-error={ + :log error ("Loading configuration from overlay snippet " . \ + [ /system/script/get $Script name ] . " failed!"); + } +} |