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