aboutsummaryrefslogtreecommitdiffstats
path: root/check-routeros-update
diff options
context:
space:
mode:
Diffstat (limited to 'check-routeros-update')
-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.";