From 639bfc367b6a7e7085190c911d437f9186e70afc Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Tue, 14 Jul 2020 09:25:12 +0200 Subject: sms-forward: wait to be fully connected --- sms-forward | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sms-forward b/sms-forward index 63b44fe..bcf29c7 100644 --- a/sms-forward +++ b/sms-forward @@ -11,12 +11,14 @@ :global LogPrintExit; :global MailServerIsUp; :global SendNotification; +:global WaitFullyConnected; :if ([ / tool sms get receive-enabled ] = false) do={ $LogPrintExit warning "Receiving of SMS is not enabled." true; } -# check mail server +$WaitFullyConnected; + :if ($MailServerIsUp = false) do={ $LogPrintExit warning "Mail server is not up." true; } -- cgit v1.2.3-70-g09d2