aboutsummaryrefslogtreecommitdiffstats
path: root/daily-psk.template
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2022-07-11 10:39:43 +0200
committerGravatar Christian Hesse <mail@eworm.de>2022-07-11 10:41:51 +0200
commitcb20b8c3807cbdd840d4017f466e1e82e3a9b8a5 (patch)
tree800d7a744dabaab77113d2723215c4515a09083b /daily-psk.template
parent0ed68824fde075a9db02d77f276fcf79050e4d39 (diff)
daily-psk: properly check for disabled state
The property 'disabled' can be undefined, which evaluates to enabled - but is not matched by 'disabled=no'.
Diffstat (limited to 'daily-psk.template')
-rw-r--r--daily-psk.template2
1 files changed, 1 insertions, 1 deletions
diff --git a/daily-psk.template b/daily-psk.template
index aa05748..bd457dc 100644
--- a/daily-psk.template
+++ b/daily-psk.template
@@ -74,7 +74,7 @@ $WaitFullyConnected;
/interface/wireless/access-list/set $AccList private-pre-shared-key=$NewPsk;
/caps-man/access-list/set $AccList private-passphrase=$NewPsk;
- :if ([ :len [ /interface/wireless/find where name=$IntName disabled=no ] ] = 1) do={
+ :if ([ :len [ /interface/wireless/find where name=$IntName !disabled ] ] = 1) do={
:if ([ :len [ /caps-man/interface/find where configuration=$Configuration ] ] > 0) do={
:foreach SeenSsid in=$Seen do={
:if ($SeenSsid = $Ssid) do={