check-routeros-update: make the checks fool-proof

This commit is contained in:
Christian Hesse 2018-07-09 20:41:31 +02:00
parent 44a6c1ca8b
commit a7fb431acd

View file

@ -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.";
}
}