mirror of
https://git.eworm.de/cgit/routeros-scripts
synced 2025-08-03 09:44:33 +02:00
check-routeros-update: silence check-for-updates, but be more verbose
This commit is contained in:
parent
7fee37f57e
commit
625d1dda12
1 changed files with 6 additions and 1 deletions
|
@ -46,13 +46,18 @@ $WaitFullyConnected;
|
|||
:error "A reboot for update is already scheduled.";
|
||||
}
|
||||
|
||||
/ system package update check-for-updates without-paging;
|
||||
$LogPrintExit2 debug $0 ("Checking for updates...") false;
|
||||
/ system package update check-for-updates without-paging as-value;
|
||||
:local Update [ / system package update get ];
|
||||
|
||||
:if ([ :len ($Update->"latest-version") ] = 0) do={
|
||||
$LogPrintExit2 info $0 ("An empty string is not a valid version.") true;
|
||||
}
|
||||
|
||||
:if (($Update->"installed-version") = ($Update->"latest-version")) do={
|
||||
$LogPrintExit2 info $0 ("System is already up to date.") true;
|
||||
}
|
||||
|
||||
:local NumInstalled [ $VersionToNum ($Update->"installed-version") ];
|
||||
:local NumLatest [ $VersionToNum ($Update->"latest-version") ];
|
||||
:local Link ("https://mikrotik.com/download/changelogs/" . $Update->"channel" . "-release-tree");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue