From 0ed68824fde075a9db02d77f276fcf79050e4d39 Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Mon, 11 Jul 2022 10:38:01 +0200 Subject: check-routeros-update: drop check for package... ... as wireless package is bundled with the system with RouterOS 7.x. --- check-routeros-update | 10 ++++------ 1 file 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={ -- cgit v1.2.3-70-g09d2