aboutsummaryrefslogtreecommitdiffstats
path: root/global-config.rsc
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2024-03-08 09:33:17 +0100
committerGravatar Christian Hesse <mail@eworm.de>2024-03-12 20:36:21 +0100
commita7cb3e520a86b44cb6e1bdfdf6df24856274e0e3 (patch)
tree6527b4ebc820bc63e80687333ae4eee3399a1e45 /global-config.rsc
parente39e8a00834192211999b89f5f163a35c2214707 (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.rsc10
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!");
+ }
+}