Compare commits

...

2 commits

Author SHA1 Message Date
Christian Hesse
b7a5402be6 introduce 'global-functions.d/deprecated' for deprecated functions 2026-01-20 09:53:24 +01:00
Christian Hesse
28b1297a43 global-functions: $ScriptInstallUpdate: trigger reload on changed snippet 2026-01-20 09:51:05 +01:00
2 changed files with 10 additions and 1 deletions

View file

@ -0,0 +1,9 @@
#!rsc by RouterOS
# RouterOS script: global-functions.d/deprecated
# Copyright (c) 2013-2026 Christian Hesse <mail@eworm.de>
# https://rsc.eworm.de/COPYING.md
#
# requires RouterOS, version=7.17
#
# deprecated global functions
# https://rsc.eworm.de/

View file

@ -1397,7 +1397,7 @@
source=[ $IfThenElse ($ScriptUpdatesCRLF = true) $SourceCRLF $SourceNew ] $Script;
:if ($ScriptVal->"name" = "global-config" || \
$ScriptVal->"name" = "global-functions" || \
$ScriptVal->"name" ~ ("^mod/.")) do={
$ScriptVal->"name" ~ ("^(global-functions\\.d|mod)/.")) do={
:set ReloadGlobal true;
}
} on-error={ }