aboutsummaryrefslogtreecommitdiffstats
path: root/sms-forward
diff options
context:
space:
mode:
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;
}