diff options
author | Christian Hesse <mail@eworm.de> | 2022-03-31 10:27:07 +0200 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2022-03-31 10:46:09 +0200 |
commit | 2c2a3013f3d6170867a7416ad6533e4d31fc3dbe (patch) | |
tree | 8bcef41110c16f3b2e1b652030053675434fa01b | |
parent | 82c0e1c44c07013f6bc8105489181152b46b126b (diff) |
hotspot-to-wpa: allow login page to load
Depending on configuration the VLAN is changed on the SSID currently
serving the hotspot. So give the login page (with success status) a
moment to load before kicking the device.
(cherry picked from commit 0786111c5c5bd3085a52fec749fc68a1584c1a4c)
-rw-r--r-- | hotspot-to-wpa | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/hotspot-to-wpa b/hotspot-to-wpa index 6290eda..a08e3bc 100644 --- a/hotspot-to-wpa +++ b/hotspot-to-wpa @@ -33,6 +33,9 @@ } :local PlaceBefore ([ / caps-man access-list find where comment="--- hotspot-to-wpa above ---" disabled ]->0); +# allow login page to load +:delay 1s; + $LogPrintExit2 info $0 ("Adding/updating accesslist entry for mac address " . $MacAddress . \ " (user " . $UserName . ").") false; / caps-man access-list remove [ find where mac-address=$MacAddress comment~"^hotspot-to-wpa: " ]; |