aboutsummaryrefslogtreecommitdiffstats
path: root/packages-update.rsc
diff options
context:
space:
mode:
Diffstat (limited to 'packages-update.rsc')
-rw-r--r--packages-update.rsc7
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;