aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2018-11-09 21:37:19 +0100
committerGravatar Christian Hesse <mail@eworm.de>2018-11-09 21:37:19 +0100
commite486332d3681b8882973e68aeab320753edad6ca (patch)
tree50d23ee559f1c367d3dc347cd68e1092f25df4e5
parent7fcb253f323b80a90a4f934717fd293afe4caa60 (diff)
check-routeros-update: use 'print count-only'
-rw-r--r--check-routeros-update2
1 files changed, 1 insertions, 1 deletions
diff --git a/check-routeros-update b/check-routeros-update
index 3f67c78..caafe3f 100644
--- a/check-routeros-update
+++ b/check-routeros-update
@@ -10,7 +10,7 @@
:global SendNotification;
-:if ([ :len [ / system package find where name="wireless" disabled=no ] ] > 0) do={
+:if ([ / system package print count-only where name="wireless" disabled=no ] > 0) do={
:if ([ / interface wireless cap get enabled ] = true && \
[ / caps-man manager get enabled ] = false) do={
:error "System is managed by CAPsMAN, not checking.";