1
0
mirror of https://github.com/eworm-de/routeros-scripts.git synced 2024-05-11 05:55:19 +00:00

daily-psk: wait to be fully connected

This commit is contained in:
Christian Hesse
2020-05-27 00:21:30 +02:00
parent 7ecda2204f
commit 7597911672
4 changed files with 10 additions and 4 deletions

View File

@@ -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 ];