From 4af18ced9e6d035c36cab2d34d4caa486a45c092 Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Mon, 5 Jan 2026 10:07:27 +0100 Subject: [PATCH 1/4] global-config: fix regex to load overlay snippets --- global-config.rsc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/global-config.rsc b/global-config.rsc index 31250418..a36dbaac 100644 --- a/global-config.rsc +++ b/global-config.rsc @@ -276,7 +276,7 @@ # # load custom settings from overlay and snippets :foreach Script in=([ /system/script/find where name="global-config-overlay" ], \ - [ /system/script/find where name~"^global-config-overlay.d/" ]) do={ + [ /system/script/find where name~"^global-config-overlay\\.d/." ]) do={ :onerror Err { /system/script/run $Script; } do={ From 8528ca376cb8faf182af9e6e7ec7f7531f6fc9c4 Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Mon, 5 Jan 2026 10:08:09 +0100 Subject: [PATCH 2/4] global-config: support loading custom config snippets This may be interesting for custom scripts which can drop their own default global configuration. --- global-config.rsc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/global-config.rsc b/global-config.rsc index a36dbaac..25254123 100644 --- a/global-config.rsc +++ b/global-config.rsc @@ -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; From 8fa17d4b3b2ede5694f3f9e053d82e2491a9a77b Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Mon, 5 Jan 2026 11:08:58 +0100 Subject: [PATCH 3/4] check-health: fix regex to load plugins --- check-health.rsc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/check-health.rsc b/check-health.rsc index 4cb5baa0..90d8c841 100644 --- a/check-health.rsc +++ b/check-health.rsc @@ -74,7 +74,7 @@ :set CheckHealthRAMUtilizationNotified false; } - :local Plugins [ /system/script/find where name~"^check-health.d/." ]; + :local Plugins [ /system/script/find where name~"^check-health\\.d/." ]; :if ([ :len $Plugins ] = 0) do={ $LogPrint debug $ScriptName ("No plugins installed."); :set ExitOK true; From 8878449b0be665f0c0df1b4ad48d20e2bb53efe9 Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Mon, 5 Jan 2026 11:37:58 +0100 Subject: [PATCH 4/4] global-functions: support modules (or snippets) in global-functions.d/ --- global-functions.rsc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/global-functions.rsc b/global-functions.rsc index ff663c7c..05c232ad 100644 --- a/global-functions.rsc +++ b/global-functions.rsc @@ -1900,7 +1900,7 @@ } # load modules -:foreach Script in=[ /system/script/find where name ~ "^mod/." ] do={ +:foreach Script in=[ /system/script/find where name ~ "^(global-functions\\.d|mod)/." ] do={ :local ScriptVal [ /system/script/get $Script ]; :if ([ $ValidateSyntax ($ScriptVal->"source") ] = true) do={ :onerror Err {