diff options
author | Christian Hesse <mail@eworm.de> | 2018-07-09 20:41:31 +0200 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2018-07-09 20:41:31 +0200 |
commit | a7fb431acd2ef0164dfd90b10414ac65d369deec (patch) | |
tree | db9fb183389008f87b03e7aaaee16650ba960308 /check-routeros-update | |
parent | 44a6c1ca8b61bf93a24060528fcdfde897bcfacf (diff) |
check-routeros-update: make the checks fool-proof
Diffstat (limited to 'check-routeros-update')
-rw-r--r-- | check-routeros-update | 5 |
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."; } } |