mirror of
https://github.com/eworm-de/routeros-scripts.git
synced 2024-05-11 05:55:19 +00:00
sms-forward: lock against multiple invocations
This commit is contained in:
@@ -10,10 +10,13 @@
|
||||
|
||||
:global LogPrintExit;
|
||||
:global MailServerIsUp;
|
||||
:global ScriptLock;
|
||||
:global SendNotification;
|
||||
:global SymbolForNotification;
|
||||
:global WaitFullyConnected;
|
||||
|
||||
$ScriptLock "sms-forward";
|
||||
|
||||
:if ([ / tool sms get receive-enabled ] = false) do={
|
||||
$LogPrintExit warning "Receiving of SMS is not enabled." true;
|
||||
}
|
||||
|
Reference in New Issue
Block a user