mirror of
https://git.eworm.de/cgit/routeros-scripts
synced 2025-07-13 11:34:31 +02:00
sms-forward: warn and exit if receiving is not enabled
This commit is contained in:
parent
255b2a8244
commit
a806b37a47
1 changed files with 4 additions and 0 deletions
|
@ -11,6 +11,10 @@
|
||||||
:global MailServerIsUp;
|
:global MailServerIsUp;
|
||||||
:global SendNotification;
|
:global SendNotification;
|
||||||
|
|
||||||
|
:if ([ / tool sms get receive-enabled ] = false) do={
|
||||||
|
$LogPrintExit warning "Receiving of SMS is not enabled." true;
|
||||||
|
}
|
||||||
|
|
||||||
# check mail server
|
# check mail server
|
||||||
: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