aboutsummaryrefslogtreecommitdiffstats
path: root/daily-psk.template
diff options
context:
space:
mode:
Diffstat (limited to 'daily-psk.template')
-rw-r--r--daily-psk.template4
1 files changed, 3 insertions, 1 deletions
diff --git a/daily-psk.template b/daily-psk.template
index 3181b1a..e9f061f 100644
--- a/daily-psk.template
+++ b/daily-psk.template
@@ -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 ];