mirror of
https://github.com/eworm-de/routeros-scripts.git
synced 2025-06-20 17:55:40 +02:00
ppp-on-up: check for global config to be ready
This commit is contained in:
parent
38ec392a5f
commit
194698f53f
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 LogPrint;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue