global-config: support loading custom config snippets

This may be interesting for custom scripts which can drop their own
default global configuration.
This commit is contained in:
Christian Hesse 2026-01-05 10:08:09 +01:00
parent 4af18ced9e
commit 8528ca376c

View file

@ -275,7 +275,8 @@
# /_()_\ Things *will* break!
#
# load custom settings from overlay and snippets
:foreach Script in=([ /system/script/find where name="global-config-overlay" ], \
:foreach Script in=([ /system/script/find where name~"^global-config\\.d/." ], \
[ /system/script/find where name="global-config-overlay" ], \
[ /system/script/find where name~"^global-config-overlay\\.d/." ]) do={
:onerror Err {
/system/script/run $Script;