From c1fa0f3579573b75cadba585c1aeb7e68313645c Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Mon, 7 Mar 2022 22:26:41 +0100 Subject: hotspot-to-wpa: support ignoring specific hotspot --- hotspot-to-wpa | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'hotspot-to-wpa') diff --git a/hotspot-to-wpa b/hotspot-to-wpa index b307a10..6290eda 100644 --- a/hotspot-to-wpa +++ b/hotspot-to-wpa @@ -23,6 +23,10 @@ :local Template [ / caps-man access-list get ([ find where disabled \ comment=("hotspot-to-wpa template " . $Hotspot) ]->0) ]; +:if ($Template->"action" = "reject") do={ + $LogPrintExit2 info $0 ("Ignoring login for hotspot '" . $Hotspot . "'.") true; +} + :if ([ :len [ / caps-man access-list find where comment="--- hotspot-to-wpa above ---" disabled ] ] = 0) do={ / caps-man access-list add comment="--- hotspot-to-wpa above ---" disabled=yes; $LogPrintExit2 warning $0 ("Added disabled access-list entry with comment '--- hotspot-to-wpa above ---'.") false; -- cgit v1.2.3-54-g00ecf