mirror of
https://github.com/eworm-de/routeros-scripts.git
synced 2025-08-05 10:44:59 +02:00
check-routeros-update: log and print info with scheduler
This commit is contained in:
parent
154fb43800
commit
ccfe1a781e
1 changed files with 2 additions and 1 deletions
|
@ -62,8 +62,9 @@
|
|||
$WaitFullyConnected;
|
||||
|
||||
:if ([ :len [ /system/scheduler/find where name="_RebootForUpdate" ] ] > 0) do={
|
||||
$LogPrint info $ScriptName ("A reboot for update is already scheduled.");
|
||||
:set ExitOK true;
|
||||
:error "A reboot for update is already scheduled.";
|
||||
:error false;
|
||||
}
|
||||
|
||||
$LogPrint debug $ScriptName ("Checking for updates...");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue