From e486332d3681b8882973e68aeab320753edad6ca Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Fri, 9 Nov 2018 21:37:19 +0100 Subject: check-routeros-update: use 'print count-only' --- check-routeros-update | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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."; -- cgit v1.2.3-54-g00ecf