From cb20b8c3807cbdd840d4017f466e1e82e3a9b8a5 Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Mon, 11 Jul 2022 10:39:43 +0200 Subject: daily-psk: properly check for disabled state The property 'disabled' can be undefined, which evaluates to enabled - but is not matched by 'disabled=no'. --- daily-psk.template | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'daily-psk.template') 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={ -- cgit v1.2.3-70-g09d2