mirror of
https://github.com/eworm-de/routeros-scripts.git
synced 2025-08-04 18:24:35 +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
|
@ -16,8 +16,9 @@
|
|||
:global SendNotification;
|
||||
:global UrlEncode;
|
||||
:global WaitForFile;
|
||||
:global WaitFullyConnected;
|
||||
|
||||
:local Seen [ :toarray "" ];
|
||||
$WaitFullyConnected;
|
||||
|
||||
# return pseudo-random string for PSK
|
||||
:local GeneratePSK do={
|
||||
|
@ -49,6 +50,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