diff options
author | Christian Hesse <mail@eworm.de> | 2022-07-11 10:38:01 +0200 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2022-07-11 10:41:37 +0200 |
commit | 0ed68824fde075a9db02d77f276fcf79050e4d39 (patch) | |
tree | 7ae6d848ee4b421eb8ef6a0c49b94779a2aa8f90 /check-routeros-update | |
parent | 61598c81e961862c0ac14d2ee8082d3cc956edb4 (diff) |
check-routeros-update: drop check for package...
... as wireless package is bundled with the system with RouterOS 7.x.
Diffstat (limited to 'check-routeros-update')
-rw-r--r-- | check-routeros-update | 10 |
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={ |