mirror of
https://github.com/eworm-de/routeros-scripts
synced 2024-05-14 08:04:19 +00:00
packages-update: use $LogPrintExit
This commit is contained in:
parent
972a481faa
commit
93e72b5d07
|
@ -37,7 +37,7 @@ $ScriptLock "packages-update";
|
||||||
:if (!([ /system resource get version ] ~ ($Update->"channel"))) do={
|
:if (!([ /system resource get version ] ~ ($Update->"channel"))) do={
|
||||||
:put "Update channel changed. Want to downgrade? [y/N]";
|
:put "Update channel changed. Want to downgrade? [y/N]";
|
||||||
:if ([ :terminal inkey timeout=60 ] = 121) do={
|
:if ([ :terminal inkey timeout=60 ] = 121) do={
|
||||||
:log info ("Rebooting for downgrade.");
|
$LogPrintExit info ("Rebooting for downgrade.") false;
|
||||||
:delay 1s;
|
:delay 1s;
|
||||||
/ system package downgrade;
|
/ system package downgrade;
|
||||||
}
|
}
|
||||||
|
@ -52,6 +52,6 @@ $ScriptLock "packages-update";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
:log info ("Rebooting for update.");
|
$LogPrintExit info ("Rebooting for update.") false;
|
||||||
:delay 1s;
|
:delay 1s;
|
||||||
/ system reboot;
|
/ system reboot;
|
||||||
|
|
Loading…
Reference in a new issue