mirror of
https://github.com/eworm-de/routeros-scripts.git
synced 2025-06-21 09:35:46 +02:00
update-tunnelbroker: fail if global functions do not become ready
This commit is contained in:
parent
87edd0bd29
commit
6040f70b19
1 changed files with 3 additions and 3 deletions
|
@ -11,11 +11,11 @@
|
|||
# update local address of tunnelbroker interface
|
||||
# https://rsc.eworm.de/doc/update-tunnelbroker.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 CertificateAvailable;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue