diff options
author | Christian Hesse <mail@eworm.de> | 2020-07-14 09:25:12 +0200 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2020-07-14 09:25:12 +0200 |
commit | 639bfc367b6a7e7085190c911d437f9186e70afc (patch) | |
tree | 7673bccada8480893aa7b08baddaa36bc7ef6c7b /sms-forward | |
parent | 16685dd332cee96a2db55e414e3a6a0c564a47a7 (diff) |
sms-forward: wait to be fully connected
Diffstat (limited to 'sms-forward')
-rw-r--r-- | sms-forward | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sms-forward b/sms-forward index 63b44fe..bcf29c7 100644 --- a/sms-forward +++ b/sms-forward @@ -11,12 +11,14 @@ :global LogPrintExit; :global MailServerIsUp; :global SendNotification; +:global WaitFullyConnected; :if ([ / tool sms get receive-enabled ] = false) do={ $LogPrintExit warning "Receiving of SMS is not enabled." true; } -# check mail server +$WaitFullyConnected; + :if ($MailServerIsUp = false) do={ $LogPrintExit warning "Mail server is not up." true; } |