From a7fb431acd2ef0164dfd90b10414ac65d369deec Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Mon, 9 Jul 2018 20:41:31 +0200 Subject: check-routeros-update: make the checks fool-proof --- check-routeros-update | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/check-routeros-update b/check-routeros-update index 8cd93fe..3804cd8 100644 --- a/check-routeros-update +++ b/check-routeros-update @@ -8,8 +8,9 @@ :global "email-general-cc"; :global "sent-routeros-update-notification"; -:if ([ :len [ / system package find where name="wireless" ] ] > 0) do={ - :if ([ / interface wireless cap get enabled ] = true) do={ +:if ([ :len [ / system package find 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-70-g09d2