mirror of
https://git.eworm.de/cgit/routeros-scripts
synced 2025-08-04 18:24:34 +02:00
daily-psk: wait to be fully connected
This commit is contained in:
parent
7ecda2204f
commit
7597911672
4 changed files with 10 additions and 4 deletions
|
@ -15,8 +15,9 @@
|
|||
:global SendNotification;
|
||||
:global UrlEncode;
|
||||
:global WaitForFile;
|
||||
:global WaitFullyConnected;
|
||||
|
||||
:local Seen [ :toarray "" ];
|
||||
$WaitFullyConnected;
|
||||
|
||||
# return pseudo-random string for PSK
|
||||
:local GeneratePSK do={
|
||||
|
@ -48,6 +49,7 @@
|
|||
($DailyPskSecrets->2->$WeekDay));
|
||||
}
|
||||
|
||||
:local Seen [ :toarray "" ];
|
||||
:local Date [ / system clock get date ];
|
||||
:local NewPsk [ $GeneratePSK $Date ];
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue