mirror of
https://github.com/nymurbd/MikroTik-scripts.git
synced 2025-07-10 01:54:31 +02:00
global: drop script 'global-wait'
All scripts wait for the global functions on their own now.
This commit is contained in:
parent
2db73a189c
commit
d5afc79eed
51 changed files with 137 additions and 81 deletions
|
@ -8,7 +8,7 @@
|
|||
# https://git.eworm.de/cgit/routeros-scripts/about/
|
||||
|
||||
# expected configuration version
|
||||
:global ExpectedConfigVersion 43;
|
||||
:global ExpectedConfigVersion 44;
|
||||
|
||||
# global variables not to be changed by user
|
||||
:global GlobalFunctionsReady false;
|
||||
|
@ -624,13 +624,6 @@
|
|||
$LogPrintExit warning ("Policies differ for script " . $ScriptVal->"name" . \
|
||||
" and its scheduler " . $SchedulerVal->"name" . "!") false;
|
||||
}
|
||||
:if ($SchedulerVal->"name" != "global-scripts" && \
|
||||
$SchedulerVal->"start-time" = "startup" && \
|
||||
$SchedulerVal->"interval" = 0s && \
|
||||
!(($SchedulerVal->"on-event") ~ "\\brun global-wait\\b")) do={
|
||||
$LogPrintExit warning ("Scheduler " . $SchedulerVal->"name" . " starts on startup, " . \
|
||||
"without waiting for global-functions. Run 'global-wait' to avoid race conditions!") false;
|
||||
}
|
||||
}
|
||||
|
||||
:if ([ :len $SourceNew ] = 0 && $ScriptUpdatesFetch = true) do={
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue