1
0
mirror of https://github.com/eworm-de/routeros-scripts.git synced 2024-05-11 05:55:19 +00:00

sms-forward: wait to be fully connected

This commit is contained in:
Christian Hesse
2020-07-14 09:25:12 +02:00
parent 16685dd332
commit 639bfc367b

View File

@@ -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;
}