mirror of
https://github.com/eworm-de/routeros-scripts
synced 2024-05-14 08:04:19 +00:00
sms-forward: warn and exit if receiving is not enabled
This commit is contained in:
parent
255b2a8244
commit
a806b37a47
|
@ -11,6 +11,10 @@
|
|||
:global MailServerIsUp;
|
||||
:global SendNotification;
|
||||
|
||||
:if ([ / tool sms get receive-enabled ] = false) do={
|
||||
$LogPrintExit warning "Receiving of SMS is not enabled." true;
|
||||
}
|
||||
|
||||
# check mail server
|
||||
:if ($MailServerIsUp = false) do={
|
||||
$LogPrintExit warning "Mail server is not up." true;
|
||||
|
|
Loading…
Reference in a new issue