mirror of
https://git.eworm.de/cgit/routeros-scripts
synced 2025-07-16 13:04:30 +02:00
daily-psk: use the template system
This commit is contained in:
parent
b35c0b8a6f
commit
228ec7106b
3 changed files with 8 additions and 2 deletions
|
@ -4,6 +4,8 @@
|
||||||
# Michael Gisbers <michael@gisbers.de>
|
# Michael Gisbers <michael@gisbers.de>
|
||||||
#
|
#
|
||||||
# update daily PSK (pre shared key)
|
# update daily PSK (pre shared key)
|
||||||
|
#
|
||||||
|
# !! Do not edit this file, it is generated from template!
|
||||||
|
|
||||||
:global Identity;
|
:global Identity;
|
||||||
:global DailyPskMatchComment;
|
:global DailyPskMatchComment;
|
||||||
|
|
|
@ -4,6 +4,8 @@
|
||||||
# Michael Gisbers <michael@gisbers.de>
|
# Michael Gisbers <michael@gisbers.de>
|
||||||
#
|
#
|
||||||
# update daily PSK (pre shared key)
|
# update daily PSK (pre shared key)
|
||||||
|
#
|
||||||
|
# !! Do not edit this file, it is generated from template!
|
||||||
|
|
||||||
:global Identity;
|
:global Identity;
|
||||||
:global DailyPskMatchComment;
|
:global DailyPskMatchComment;
|
||||||
|
|
|
@ -4,6 +4,9 @@
|
||||||
# Michael Gisbers <michael@gisbers.de>
|
# Michael Gisbers <michael@gisbers.de>
|
||||||
#
|
#
|
||||||
# update daily PSK (pre shared key)
|
# update daily PSK (pre shared key)
|
||||||
|
#
|
||||||
|
# !! This is just a template! Replace '%PATH%' with 'caps-man'
|
||||||
|
# !! or 'interface wireless'!
|
||||||
|
|
||||||
:global Identity;
|
:global Identity;
|
||||||
:global DailyPskMatchComment;
|
:global DailyPskMatchComment;
|
||||||
|
@ -46,8 +49,7 @@
|
||||||
:local Date [ / system clock get date ];
|
:local Date [ / system clock get date ];
|
||||||
:local NewPsk [ $GeneratePSK $Date ];
|
:local NewPsk [ $GeneratePSK $Date ];
|
||||||
|
|
||||||
:foreach AccList in=[ / interface wireless access-list find where comment~$DailyPskMatchComment ] do={
|
:foreach AccList in=[ / %PATH% access-list find where comment~$DailyPskMatchComment ] do={
|
||||||
:foreach AccList in=[ / caps-man access-list find where comment~$DailyPskMatchComment ] do={
|
|
||||||
:local IntName [ / interface wireless access-list get $AccList interface ];
|
:local IntName [ / interface wireless access-list get $AccList interface ];
|
||||||
:local Ssid [ / interface wireless get $IntName ssid ];
|
:local Ssid [ / interface wireless get $IntName ssid ];
|
||||||
:local Ssid [ / caps-man access-list get $AccList ssid-regexp ];
|
:local Ssid [ / caps-man access-list get $AccList ssid-regexp ];
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue