aboutsummaryrefslogtreecommitdiffstats
path: root/packages-update
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2020-05-26 22:59:50 +0200
committerGravatar Christian Hesse <mail@eworm.de>2020-05-26 22:59:50 +0200
commit856c879fd8cccc2f8dc7243b60233efd1453e22d (patch)
tree4e84ae241f4bde862e23af0eede5b29dcd8b9006 /packages-update
parentbcf57f0adb17cdc44d391caed54a6319522ba089 (diff)
packages-update: accept lower and upper case characters
Diffstat (limited to 'packages-update')
-rw-r--r--packages-update4
1 files changed, 2 insertions, 2 deletions
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;");