aboutsummaryrefslogtreecommitdiffstats
path: root/hotspot-to-wpa.template.rsc
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2023-11-14 10:10:56 +0100
committerGravatar Christian Hesse <mail@eworm.de>2023-11-15 14:34:33 +0100
commit448b44cde664a5da65c3b8726e8f512483693eca (patch)
tree9aee3183f1081c6ad5a11f36bd30ff52ae091f29 /hotspot-to-wpa.template.rsc
parent3aec5d70c628003634fc413cdb00b2e1e0c9fca5 (diff)
Makefile: support new wifi package...
... introduced with RouterOS 7.13beta1.
Diffstat (limited to 'hotspot-to-wpa.template.rsc')
-rw-r--r--hotspot-to-wpa.template.rsc8
1 files changed, 4 insertions, 4 deletions
diff --git a/hotspot-to-wpa.template.rsc b/hotspot-to-wpa.template.rsc
index c676fe6..5443271 100644
--- a/hotspot-to-wpa.template.rsc
+++ b/hotspot-to-wpa.template.rsc
@@ -74,9 +74,9 @@ $LogPrintExit2 info $0 ("Adding/updating access-list entry for mac address " . $
:local Entry [ /caps-man/access-list/find where mac-address=$MacAddress \
:local Entry [ /interface/wifiwave2/access-list/find where mac-address=$MacAddress \
comment=("hotspot-to-wpa: " . $UserName . ", " . $MacAddress . ", " . $Date) ];
-# NOT /caps-man #
+# NOT /caps-man/ #
:set ($Template->"private-passphrase") ($Template->"passphrase");
-# NOT /caps-man #
+# NOT /caps-man/ #
:local PrivatePassphrase [ $EitherOr ($UserInfo->"private-passphrase") ($Template->"private-passphrase") ];
:if ([ :len $PrivatePassphrase ] > 0) do={
:if ($PrivatePassphrase = "ignore") do={
@@ -97,12 +97,12 @@ $LogPrintExit2 info $0 ("Adding/updating access-list entry for mac address " . $
/caps-man/access-list/set $Entry vlan-id=$VlanId;
/interface/wifiwave2/access-list/set $Entry vlan-id=$VlanId;
}
-# NOT /interface/wifiwave2 #
+# NOT /interface/wifiwave2/ #
:local VlanMode [ $EitherOr ($UserInfo->"vlan-mode") ($Template->"vlan-mode") ];
:if ([ :len $VlanMode] > 0) do={
/caps-man/access-list/set $Entry vlan-mode=$VlanMode;
}
-# NOT /interface/wifiwave2 #
+# NOT /interface/wifiwave2/ #
:delay 2s;
/caps-man/access-list/set $Entry action=accept;