mirror of
https://github.com/nymurbd/MikroTik-scripts.git
synced 2025-08-01 16:55:03 +02:00
sms-forward: lock against multiple invocations
This commit is contained in:
parent
6d9eb99e08
commit
a4b237044d
1 changed files with 3 additions and 0 deletions
|
@ -10,10 +10,13 @@
|
||||||
|
|
||||||
:global LogPrintExit;
|
:global LogPrintExit;
|
||||||
:global MailServerIsUp;
|
:global MailServerIsUp;
|
||||||
|
:global ScriptLock;
|
||||||
:global SendNotification;
|
:global SendNotification;
|
||||||
:global SymbolForNotification;
|
:global SymbolForNotification;
|
||||||
:global WaitFullyConnected;
|
:global WaitFullyConnected;
|
||||||
|
|
||||||
|
$ScriptLock "sms-forward";
|
||||||
|
|
||||||
: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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue