mirror of
https://git.eworm.de/cgit/routeros-scripts
synced 2025-07-31 16:24:25 +02:00
sms-forward: check that the interface is running
This commit is contained in:
parent
4f722bc2c9
commit
742c239629
1 changed files with 4 additions and 0 deletions
|
@ -43,6 +43,10 @@ $WaitFullyConnected;
|
|||
|
||||
:local Settings [ /tool/sms/get ];
|
||||
|
||||
:if ([ /interface/lte/get ($Settings->"port") running ] != true) do={
|
||||
$LogPrintExit2 info $0 ("The LTE interface is not in running state, skipping.") true;
|
||||
}
|
||||
|
||||
# forward SMS in a loop
|
||||
:while ([ :len [ /tool/sms/inbox/find ] ] > 0) do={
|
||||
:local Phone [ /tool/sms/inbox/get ([ find ]->0) phone ];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue