mirror of
https://git.eworm.de/cgit/routeros-scripts
synced 2025-07-15 20:44:31 +02:00
sms-forward: wait to be fully connected
This commit is contained in:
parent
16685dd332
commit
639bfc367b
1 changed files with 3 additions and 1 deletions
|
@ -11,12 +11,14 @@
|
||||||
:global LogPrintExit;
|
:global LogPrintExit;
|
||||||
:global MailServerIsUp;
|
:global MailServerIsUp;
|
||||||
:global SendNotification;
|
:global SendNotification;
|
||||||
|
:global WaitFullyConnected;
|
||||||
|
|
||||||
:if ([ / tool sms get receive-enabled ] = false) do={
|
:if ([ / tool sms get receive-enabled ] = false) do={
|
||||||
$LogPrintExit warning "Receiving of SMS is not enabled." true;
|
$LogPrintExit warning "Receiving of SMS is not enabled." true;
|
||||||
}
|
}
|
||||||
|
|
||||||
# check mail server
|
$WaitFullyConnected;
|
||||||
|
|
||||||
:if ($MailServerIsUp = false) do={
|
:if ($MailServerIsUp = false) do={
|
||||||
$LogPrintExit warning "Mail server is not up." true;
|
$LogPrintExit warning "Mail server is not up." true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue