mirror of
https://git.eworm.de/cgit/routeros-scripts
synced 2025-06-20 17:05:44 +02:00
lease-script: check for global config to be ready
This commit is contained in:
parent
59f9a1187f
commit
10bd9a1cb5
1 changed files with 3 additions and 3 deletions
|
@ -10,9 +10,9 @@
|
|||
|
||||
:local ExitOK false;
|
||||
:onerror Err {
|
||||
:global GlobalFunctionsReady;
|
||||
:retry { :if ($GlobalFunctionsReady != true) \
|
||||
do={ :error ("Global functions not ready."); }; } delay=500ms max=50;
|
||||
:global GlobalConfigReady; :global GlobalFunctionsReady;
|
||||
:retry { :if ($GlobalConfigReady != true || $GlobalFunctionsReady != true) \
|
||||
do={ :error ("Global config and/or functions not ready."); }; } delay=500ms max=50;
|
||||
:local ScriptName [ :jobname ];
|
||||
|
||||
:global Grep;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue