Commit fd2901cd authored by Christian Hesse's avatar Christian Hesse

daily-psk.capsman: pick only first configuration

parent a2e63629
......@@ -51,7 +51,7 @@
:foreach AccList in=[ / caps-man access-list find where comment~$DailyPskMatchComment ] do={
:local Ssid [ / caps-man access-list get $AccList ssid-regexp ];
:local Configuration [ / caps-man configuration get [ find where ssid=$Ssid ] name ];
:local Configuration [ / caps-man configuration get ([ find where ssid=$Ssid ]->0) name ];
:local OldPsk [ / caps-man access-list get $AccList private-passphrase ];
:local Skip 0;
......
......@@ -54,7 +54,7 @@
:local IntName [ / interface wireless access-list get $AccList interface ];
:local Ssid [ / interface wireless get $IntName ssid ];
:local Ssid [ / caps-man access-list get $AccList ssid-regexp ];
:local Configuration [ / caps-man configuration get [ find where ssid=$Ssid ] name ];
:local Configuration [ / caps-man configuration get ([ find where ssid=$Ssid ]->0) name ];
:local OldPsk [ / interface wireless access-list get $AccList private-pre-shared-key ];
:local OldPsk [ / caps-man access-list get $AccList private-passphrase ];
:local Skip 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment