From 228ec7106bd22e4ccca32e1b35ef2f7b70fddf57 Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Wed, 3 Apr 2019 22:51:15 +0200 Subject: daily-psk: use the template system --- daily-psk.template | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'daily-psk.template') diff --git a/daily-psk.template b/daily-psk.template index a9d65f2..2044281 100644 --- a/daily-psk.template +++ b/daily-psk.template @@ -4,6 +4,9 @@ # Michael Gisbers # # 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 ]; -- cgit v1.2.3-70-g09d2