aboutsummaryrefslogtreecommitdiffstats
path: root/sms-forward
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2020-07-14 09:25:12 +0200
committerGravatar Christian Hesse <mail@eworm.de>2020-07-14 09:25:12 +0200
commit639bfc367b6a7e7085190c911d437f9186e70afc (patch)
tree7673bccada8480893aa7b08baddaa36bc7ef6c7b /sms-forward
parent16685dd332cee96a2db55e414e3a6a0c564a47a7 (diff)
sms-forward: wait to be fully connected
Diffstat (limited to 'sms-forward')
-rw-r--r--sms-forward4
1 files changed, 3 insertions, 1 deletions
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;
}