mirror of
https://git.eworm.de/cgit/routeros-scripts
synced 2025-07-14 12:04:29 +02:00
dhcp-to-dns: fail if global functions do not become ready
This commit is contained in:
parent
a556f4c398
commit
a308d4269e
1 changed files with 3 additions and 3 deletions
|
@ -9,11 +9,11 @@
|
|||
# check DHCP leases and add/remove/update DNS entries
|
||||
# https://rsc.eworm.de/doc/dhcp-to-dns.md
|
||||
|
||||
:global GlobalFunctionsReady;
|
||||
:while ($GlobalFunctionsReady != true) do={ :delay 500ms; }
|
||||
|
||||
:local ExitOK false;
|
||||
:onerror Err {
|
||||
:global GlobalFunctionsReady;
|
||||
:retry { :if ($GlobalFunctionsReady != true) \
|
||||
do={ :error ("Global functions not ready."); }; } delay=500ms max=50;
|
||||
:local ScriptName [ :jobname ];
|
||||
|
||||
:global Domain;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue