packages-update: use $LogPrintExit

This commit is contained in:
Christian Hesse 2020-04-03 17:22:03 +02:00
parent 972a481faa
commit 93e72b5d07

View file

@ -37,7 +37,7 @@ $ScriptLock "packages-update";
:if (!([ /system resource get version ] ~ ($Update->"channel"))) do={
:put "Update channel changed. Want to downgrade? [y/N]";
:if ([ :terminal inkey timeout=60 ] = 121) do={
:log info ("Rebooting for downgrade.");
$LogPrintExit info ("Rebooting for downgrade.") false;
:delay 1s;
/ system package downgrade;
}
@ -52,6 +52,6 @@ $ScriptLock "packages-update";
}
}
:log info ("Rebooting for update.");
$LogPrintExit info ("Rebooting for update.") false;
:delay 1s;
/ system reboot;