mirror of
https://github.com/eworm-de/routeros-scripts
synced 2024-05-14 08:04:19 +00:00
check-routeros-update: make the checks fool-proof
This commit is contained in:
parent
44a6c1ca8b
commit
a7fb431acd
1 changed files with 3 additions and 2 deletions
|
@ -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.";
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue