diff options
author | Christian Hesse <mail@eworm.de> | 2024-01-26 09:11:17 +0100 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2024-01-30 00:02:08 +0100 |
commit | 62f33d7b19792fded8366d57ff8756c5952da990 (patch) | |
tree | c44d0140280072374b3da7080ab2da711873181b /packages-update.rsc | |
parent | 98f26989f5f625ad918aed900b7888fa69c78248 (diff) |
packages-update: support deferred reboot on auto-updatechange-117
Closes #56
Diffstat (limited to 'packages-update.rsc')
-rw-r--r-- | packages-update.rsc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/packages-update.rsc b/packages-update.rsc index b67346d..552a682 100644 --- a/packages-update.rsc +++ b/packages-update.rsc @@ -18,6 +18,8 @@ :global ScriptLock; :global VersionToNum; +:global PackagesUpdateDeferReboot; + :local Schedule do={ :global RebootForUpdate do={ :global RandomDelay; @@ -109,6 +111,11 @@ $ScriptLock $0; $Schedule; $LogPrintExit2 info $0 ("Scheduled reboot for update between 03:00 and 04:00.") true; } +} else={ + :if ($PackagesUpdateDeferReboot = true) do={ + $Schedule; + $LogPrintExit2 info $0 ("Scheduled reboot for update between 03:00 and 04:00.") true; + } } $LogPrintExit2 info $0 ("Rebooting for update.") false; |