mirror of
https://github.com/eworm-de/routeros-scripts.git
synced 2025-06-20 17:15:48 +02:00
dhcp-to-dns: check for global config to be ready
This commit is contained in:
parent
ad6ad5bfcc
commit
857993cf90
1 changed files with 3 additions and 3 deletions
|
@ -11,9 +11,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 Domain;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue