diff options
author | Christian Hesse <mail@eworm.de> | 2021-02-23 09:55:14 +0100 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2021-02-24 21:51:56 +0100 |
commit | 6770a15a7d1df1ef5f2cc0a6f82e0d4f82b214d6 (patch) | |
tree | a4a6932921381bce8ae605aebd2cd1b85b30a4c2 /cloud-backup | |
parent | 766a92a74b728653ae73df7566f1ed34981c1063 (diff) |
cloud-backup: add configurable random delay
Diffstat (limited to 'cloud-backup')
-rw-r--r-- | cloud-backup | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/cloud-backup b/cloud-backup index 598a500..aa29faa 100644 --- a/cloud-backup +++ b/cloud-backup @@ -11,16 +11,23 @@ :while ($GlobalFunctionsReady != true) do={ :delay 500ms; } :global BackupPassword; +:global BackupRandomDelay; :global Identity; :global DeviceInfo; :global LogPrintExit2; +:global RandomDelay; +:global ScriptFromTerminal; :global SendNotification; :global SymbolForNotification; :global WaitFullyConnected; $WaitFullyConnected; +:if ([ $ScriptFromTerminal $0 ] = false && $BackupRandomDelay > 0) do={ + $RandomDelay $BackupRandomDelay; +} + :do { # we are not interested in output, but print is # required to fetch information from cloud |