mirror of
https://github.com/eworm-de/routeros-scripts.git
synced 2025-12-06 09:59:28 +00:00
check-routeros-update: $DoUpdate: drop message...
... as it's either not shown anyway (when rebooting already), `packages-update` gives reasonable output, or it is simply wrong (when `packages-update` failed).
This commit is contained in:
parent
830693df79
commit
28b00e23a1
1 changed files with 0 additions and 3 deletions
|
|
@ -39,14 +39,11 @@
|
||||||
:local DoUpdate do={
|
:local DoUpdate do={
|
||||||
:local ScriptName [ :tostr $1 ];
|
:local ScriptName [ :tostr $1 ];
|
||||||
|
|
||||||
:global LogPrint;
|
|
||||||
|
|
||||||
:if ([ :len [ /system/script/find where name="packages-update" ] ] > 0) do={
|
:if ([ :len [ /system/script/find where name="packages-update" ] ] > 0) do={
|
||||||
/system/script/run packages-update;
|
/system/script/run packages-update;
|
||||||
} else={
|
} else={
|
||||||
/system/package/update/install without-paging;
|
/system/package/update/install without-paging;
|
||||||
}
|
}
|
||||||
$LogPrint info $ScriptName ("Waiting for system to reboot.");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
:if ([ $ScriptLock $ScriptName ] = false) do={
|
:if ([ $ScriptLock $ScriptName ] = false) do={
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue