hotspot-to-wpa-cleanup: fail if global functions do not become ready

Co-authored-by: Ilya Kulakov <kulakov.ilya@gmail.com>
This commit is contained in:
Christian Hesse 2025-05-05 18:01:28 +02:00
parent 3200a7fb4d
commit f4b0516986
3 changed files with 6 additions and 3 deletions

View file

@ -13,7 +13,8 @@
# !! Do not edit this file, it is generated from template!
:global GlobalFunctionsReady;
:while ($GlobalFunctionsReady != true) do={ :delay 500ms; }
:onerror e { :retry { :if ($GlobalFunctionsReady != true) \
do={ :error "Global functions not ready."; }; } delay=500ms max=20; } do={ :log error $e; };
:local ExitOK false;
:do {

View file

@ -14,7 +14,8 @@
# !! Pattern '%TEMPL%' is replaced, paths are filtered.
:global GlobalFunctionsReady;
:while ($GlobalFunctionsReady != true) do={ :delay 500ms; }
:onerror e { :retry { :if ($GlobalFunctionsReady != true) \
do={ :error "Global functions not ready."; }; } delay=500ms max=20; } do={ :log error $e; };
:local ExitOK false;
:do {

View file

@ -13,7 +13,8 @@
# !! Do not edit this file, it is generated from template!
:global GlobalFunctionsReady;
:while ($GlobalFunctionsReady != true) do={ :delay 500ms; }
:onerror e { :retry { :if ($GlobalFunctionsReady != true) \
do={ :error "Global functions not ready."; }; } delay=500ms max=20; } do={ :log error $e; };
:local ExitOK false;
:do {