Commit 228ec710 authored by Christian Hesse's avatar Christian Hesse

daily-psk: use the template system

parent b35c0b8a
......@@ -4,6 +4,8 @@
# Michael Gisbers <[email protected]>
#
# update daily PSK (pre shared key)
#
# !! Do not edit this file, it is generated from template!
:global Identity;
:global DailyPskMatchComment;
......
......@@ -4,6 +4,8 @@
# Michael Gisbers <[email protected]>
#
# update daily PSK (pre shared key)
#
# !! Do not edit this file, it is generated from template!
:global Identity;
:global DailyPskMatchComment;
......
......@@ -4,6 +4,9 @@
# Michael Gisbers <[email protected]>
#
# update daily PSK (pre shared key)
#
# !! This is just a template! Replace '%PATH%' with 'caps-man'
# !! or 'interface wireless'!
:global Identity;
:global DailyPskMatchComment;
......@@ -46,8 +49,7 @@
:local Date [ / system clock get date ];
:local NewPsk [ $GeneratePSK $Date ];
:foreach AccList in=[ / interface wireless access-list find where comment~$DailyPskMatchComment ] do={
:foreach AccList in=[ / caps-man access-list find where comment~$DailyPskMatchComment ] do={
:foreach AccList in=[ / %PATH% access-list find where comment~$DailyPskMatchComment ] do={
: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 ];
......
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