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:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user