mirror of
https://github.com/eworm-de/routeros-scripts.git
synced 2026-01-07 09:39:32 +00:00
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:
parent
4af18ced9e
commit
8528ca376c
1 changed files with 2 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue