aboutsummaryrefslogtreecommitdiffstats
path: root/daily-psk.local
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2020-05-27 00:21:30 +0200
committerGravatar Christian Hesse <mail@eworm.de>2020-05-27 00:21:30 +0200
commit75979116727eed330b404dfb9c01354704193fc9 (patch)
tree3865c467e3ccb253328017f4407ee5af12caf653 /daily-psk.local
parent7ecda2204fa5ee69996ab579c89bdf87e175686c (diff)
daily-psk: wait to be fully connected
Diffstat (limited to 'daily-psk.local')
-rw-r--r--daily-psk.local4
1 files changed, 3 insertions, 1 deletions
diff --git a/daily-psk.local b/daily-psk.local
index 6245ebe..d4d6a72 100644
--- a/daily-psk.local
+++ b/daily-psk.local
@@ -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 ];