aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sms-forward.rsc4
1 files changed, 4 insertions, 0 deletions
diff --git a/sms-forward.rsc b/sms-forward.rsc
index 9259eae..e6ac9aa 100644
--- a/sms-forward.rsc
+++ b/sms-forward.rsc
@@ -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 ];