aboutsummaryrefslogtreecommitdiffstats
path: root/capsman-download-packages
diff options
context:
space:
mode:
Diffstat (limited to 'capsman-download-packages')
-rw-r--r--capsman-download-packages12
1 files changed, 9 insertions, 3 deletions
diff --git a/capsman-download-packages b/capsman-download-packages
index ac5ec0e..da43454 100644
--- a/capsman-download-packages
+++ b/capsman-download-packages
@@ -50,9 +50,15 @@ $WaitFullyConnected;
}
}
-:if ($Updated = false && [ / system resource get uptime ] < 2m) do={
- $LogPrintExit2 info $0 ("No packages downloaded, yet. Delaying for logs.") false;
- :delay 2m;
+:if ([ :len [ / system logging find where topics~"error" !(topics~"!error") \
+ !(topics~"!caps") action=memory !disabled !invalid ] ] < 1) do={
+ $LogPrintExit2 warning $0 ("Looks like error messages for 'caps' are not sent to memory. " . \
+ "Probably can not download packages automatically.") false;
+} else={
+ :if ($Updated = false && [ / system resource get uptime ] < 2m) do={
+ $LogPrintExit2 info $0 ("No packages downloaded, yet. Delaying for logs.") false;
+ :delay 2m;
+ }
}
:foreach Log in=[ / log find where topics=({"caps", "error"}) \