mirror of
https://git.eworm.de/cgit/routeros-scripts
synced 2025-06-22 09:43:30 +02:00
ppp-on-up: fail if global functions do not become ready
This commit is contained in:
parent
4358dabb19
commit
7b624faaa1
1 changed files with 3 additions and 3 deletions
|
@ -8,11 +8,11 @@
|
||||||
# run scripts on ppp up
|
# run scripts on ppp up
|
||||||
# https://rsc.eworm.de/doc/ppp-on-up.md
|
# https://rsc.eworm.de/doc/ppp-on-up.md
|
||||||
|
|
||||||
:global GlobalFunctionsReady;
|
|
||||||
:while ($GlobalFunctionsReady != true) do={ :delay 500ms; }
|
|
||||||
|
|
||||||
:local ExitOK false;
|
:local ExitOK false;
|
||||||
:onerror Err {
|
:onerror Err {
|
||||||
|
:global GlobalFunctionsReady;
|
||||||
|
:retry { :if ($GlobalFunctionsReady != true) \
|
||||||
|
do={ :error ("Global functions not ready."); }; } delay=500ms max=50;
|
||||||
:local ScriptName [ :jobname ];
|
:local ScriptName [ :jobname ];
|
||||||
|
|
||||||
:global LogPrint;
|
:global LogPrint;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue