From 75979116727eed330b404dfb9c01354704193fc9 Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Wed, 27 May 2020 00:21:30 +0200 Subject: daily-psk: wait to be fully connected --- daily-psk.local | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'daily-psk.local') 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 ]; -- cgit v1.2.3-54-g00ecf