diff options
author | Christian Hesse <mail@eworm.de> | 2024-01-31 14:33:00 +0100 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2024-01-31 23:10:15 +0100 |
commit | 237dcd7261a33a4c222df486a8b895a496ef0ef3 (patch) | |
tree | a8db4fe2fc03be397281c3c320b1aed1f341cf55 /packages-update.rsc | |
parent | c1568a33ddb848f958ac748923484887b743a0e7 (diff) |
packages-update: prepare message and mention time zone
Diffstat (limited to 'packages-update.rsc')
-rw-r--r-- | packages-update.rsc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/packages-update.rsc b/packages-update.rsc index a7ddc19..3e18413 100644 --- a/packages-update.rsc +++ b/packages-update.rsc @@ -107,16 +107,18 @@ $ScriptLock $0; /system/package/downgrade; } +:local Message ("Scheduled reboot for update between 3 AM and 4 AM local time (" . \ + [ /system/clock/get time-zone-name ] . ")."); :if ([ $ScriptFromTerminal $0 ] = true) do={ :put "Do you want to (s)chedule reboot or (r)eboot now? [s/R]"; :if (([ /terminal/inkey timeout=60 ] % 32) = 19) do={ $Schedule; - $LogPrintExit2 info $0 ("Scheduled reboot for update between 03:00 and 04:00.") true; + $LogPrintExit2 info $0 $Message true; } } else={ :if ($PackagesUpdateDeferReboot = true) do={ $Schedule; - $LogPrintExit2 info $0 ("Scheduled reboot for update between 03:00 and 04:00.") true; + $LogPrintExit2 info $0 $Message true; } } |