mirror of
https://git.eworm.de/cgit/routeros-scripts
synced 2025-06-21 09:25:42 +02:00
hotspot-to-wpa: fail if global functions do not become ready
This commit is contained in:
parent
76778f0431
commit
057bbb8481
3 changed files with 9 additions and 9 deletions
|
@ -11,11 +11,11 @@
|
||||||
#
|
#
|
||||||
# !! Do not edit this file, it is generated from template!
|
# !! Do not edit this file, it is generated from template!
|
||||||
|
|
||||||
: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 EitherOr;
|
:global EitherOr;
|
||||||
|
|
|
@ -12,11 +12,11 @@
|
||||||
# !! This is just a template to generate the real script!
|
# !! This is just a template to generate the real script!
|
||||||
# !! Pattern '%TEMPL%' is replaced, paths are filtered.
|
# !! Pattern '%TEMPL%' is replaced, paths are filtered.
|
||||||
|
|
||||||
: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 EitherOr;
|
:global EitherOr;
|
||||||
|
|
|
@ -11,11 +11,11 @@
|
||||||
#
|
#
|
||||||
# !! Do not edit this file, it is generated from template!
|
# !! Do not edit this file, it is generated from template!
|
||||||
|
|
||||||
: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 EitherOr;
|
:global EitherOr;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue