mirror of
https://git.eworm.de/cgit/routeros-scripts
synced 2025-08-15 07:22:22 +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;
|
$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...");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue