From 08b1b72fa9bda0f08eeaf28fd7d83d6e0e06389f Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Mon, 28 Jun 2021 00:13:16 +0200 Subject: hotspot-to-wpa-cleanup: lock script (and wait) --- hotspot-to-wpa-cleanup | 3 +++ 1 file changed, 3 insertions(+) diff --git a/hotspot-to-wpa-cleanup b/hotspot-to-wpa-cleanup index 2c418cd..69a1119 100644 --- a/hotspot-to-wpa-cleanup +++ b/hotspot-to-wpa-cleanup @@ -13,6 +13,9 @@ :while ($GlobalFunctionsReady != true) do={ :delay 500ms; } :global LogPrintExit2; +:global ScriptLock; + +$ScriptLock $0 false 10; :foreach Client in=[ / caps-man registration-table find where comment~"^hotspot-to-wpa:" ] do={ :local ClientVal [ / caps-man registration-table get $Client ]; -- cgit v1.2.3-54-g00ecf