diff --git a/packages-update b/packages-update index fb7ff58..f4f5407 100644 --- a/packages-update +++ b/packages-update @@ -36,7 +36,7 @@ $ScriptLock "packages-update"; :if ([ $ScriptFromTerminal "packages-update" ] = true) do={ :if (!([ /system resource get version ] ~ ($Update->"channel"))) do={ :put "Update channel changed. Want to downgrade? [y/N]"; - :if ([ :terminal inkey timeout=60 ] = 121) do={ + :if (([ :terminal inkey timeout=60 ] % 32) = 25) do={ $LogPrintExit info ("Rebooting for downgrade.") false; :delay 1s; / system package downgrade; @@ -44,7 +44,7 @@ $ScriptLock "packages-update"; } :put "Do you want to (s)chedule reboot or (r)eboot now? [s/R]"; - :if ([ :terminal inkey timeout=60 ] = 115) do={ + :if (([ :terminal inkey timeout=60 ] % 32) = 19) do={ / system scheduler add name="reboot-for-update" start-time=03:00:00 interval=1d \ on-event=(":global RandomDelay; \$RandomDelay 3600; " . \ "/ system scheduler remove reboot-for-update; / system reboot;");