diff options
author | Christian Hesse <mail@eworm.de> | 2023-03-28 10:03:39 +0200 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2023-03-28 11:42:58 +0200 |
commit | 742c239629ff7e894ccf1a45e708a0a993ef380d (patch) | |
tree | 3c755f7905ed91bebbc3f00400b2a0f006c660e3 /sms-forward.rsc | |
parent | 4f722bc2c9019dd687a0df450034b18aae81f782 (diff) |
sms-forward: check that the interface is running
Diffstat (limited to 'sms-forward.rsc')
-rw-r--r-- | sms-forward.rsc | 4 |
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 ]; |