aboutsummaryrefslogtreecommitdiffstats
path: root/check-routeros-update
diff options
context:
space:
mode:
Diffstat (limited to 'check-routeros-update')
-rw-r--r--check-routeros-update10
1 files changed, 4 insertions, 6 deletions
diff --git a/check-routeros-update b/check-routeros-update
index 3d4f14a..acca9b9 100644
--- a/check-routeros-update
+++ b/check-routeros-update
@@ -39,12 +39,10 @@ $ScriptLock $0;
$WaitFullyConnected;
-: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 && \
- $SafeUpdateOnCap != true) do={
- $LogPrintExit2 error $0 ("System is managed by CAPsMAN, not checking for RouterOS version.") true;
- }
+:if ([ /interface/wireless/cap/get enabled ] = true && \
+ [ /caps-man/manager/get enabled ] = false && \
+ $SafeUpdateOnCap != true) do={
+ $LogPrintExit2 error $0 ("System is managed by CAPsMAN, not checking for RouterOS version.") true;
}
:if ([ :len [ /system/scheduler/find where name="reboot-for-update" ] ] > 0) do={