aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2018-07-09 20:41:31 +0200
committerGravatar Christian Hesse <mail@eworm.de>2018-07-09 20:41:31 +0200
commita7fb431acd2ef0164dfd90b10414ac65d369deec (patch)
treedb9fb183389008f87b03e7aaaee16650ba960308
parent44a6c1ca8b61bf93a24060528fcdfde897bcfacf (diff)
check-routeros-update: make the checks fool-proof
-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.";
}
}