check-routeros-update: log and print info with scheduler

This commit is contained in:
Christian Hesse 2025-05-06 09:25:28 +02:00
parent 154fb43800
commit ccfe1a781e

View file

@ -62,8 +62,9 @@
$WaitFullyConnected; $WaitFullyConnected;
:if ([ :len [ /system/scheduler/find where name="_RebootForUpdate" ] ] > 0) do={ :if ([ :len [ /system/scheduler/find where name="_RebootForUpdate" ] ] > 0) do={
$LogPrint info $ScriptName ("A reboot for update is already scheduled.");
:set ExitOK true; :set ExitOK true;
:error "A reboot for update is already scheduled."; :error false;
} }
$LogPrint debug $ScriptName ("Checking for updates..."); $LogPrint debug $ScriptName ("Checking for updates...");