mirror of
https://github.com/eworm-de/routeros-scripts.git
synced 2024-05-11 05:55:19 +00:00
sms-forward: check that the interface is running
This commit is contained in:
@ -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 ];
|
||||
|
Reference in New Issue
Block a user