mirror of
https://github.com/eworm-de/routeros-scripts.git
synced 2024-05-11 05:55:19 +00:00
packages-update: use $LogPrintExit
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user