From cbc547332e511e1ae7a0658002e2cc595b3b1182 Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Tue, 31 Jan 2023 12:35:19 +0100 Subject: check-routeros-update: drop check for cap This becomes complicated with legacy wireless and wifiwave2 package, old and new CAPsMAN. Let's just drop the check. --- check-routeros-update | 7 ------- doc/check-routeros-update.md | 1 - global-config | 2 -- global-config.changes | 1 + global-functions | 2 +- 5 files changed, 2 insertions(+), 11 deletions(-) diff --git a/check-routeros-update b/check-routeros-update index ccc0d79..3e5a381 100644 --- a/check-routeros-update +++ b/check-routeros-update @@ -12,7 +12,6 @@ :global Identity; :global SafeUpdateNeighbor; -:global SafeUpdateOnCap; :global SafeUpdatePatch; :global SafeUpdateUrl; :global SentRouterosUpdateNotification; @@ -39,12 +38,6 @@ $ScriptLock $0; $WaitFullyConnected; -: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={ :error "A reboot for update is already scheduled."; } diff --git a/doc/check-routeros-update.md b/doc/check-routeros-update.md index 696abe6..348acc6 100644 --- a/doc/check-routeros-update.md +++ b/doc/check-routeros-update.md @@ -51,7 +51,6 @@ safe versions from a web server. The configuration goes to `global-config-overlay`, this is the parameter: * `SafeUpdateNeighbor`: install updates automatically if seen in neighbor list -* `SafeUpdateOnCap`: check for updates even if device is managed by CAPsMAN * `SafeUpdatePatch`: install patch updates automatically * `SafeUpdateUrl`: url to check for safe update, the channel (`long-term`, `stable` or `testing`) is appended diff --git a/global-config b/global-config index 4b5338a..1e7a185 100644 --- a/global-config +++ b/global-config @@ -104,8 +104,6 @@ :global SafeUpdatePatch false; # Allow to install updates automatically if seen in neighbor list. :global SafeUpdateNeighbor false; -# Allow to install updates even if device is managed by CAPsMAN. -:global SafeUpdateOnCap false; # These thresholds control when to send health notification # on temperature and voltage. diff --git a/global-config.changes b/global-config.changes index 94da56c..3db2a28 100644 --- a/global-config.changes +++ b/global-config.changes @@ -99,6 +99,7 @@ 88="Added support for monitoring CPU load and available free RAM in 'check-health'."; 89="Made the warning time for 'check-certificates' configurable."; 90="Chat with your router! Introduced 'telegram-chat' to chat via Telegram bot and send commands to your router."; + 91="Dropped check for CAP in 'check-routeros-update' to solve issues with wifiwave2 package."; }; # Migration steps to be applied on script updates diff --git a/global-functions b/global-functions index 7fe3873..8d865ba 100644 --- a/global-functions +++ b/global-functions @@ -12,7 +12,7 @@ :local 0 "global-functions"; # expected configuration version -:global ExpectedConfigVersion 90; +:global ExpectedConfigVersion 91; # global variables not to be changed by user :global GlobalFunctionsReady false; -- cgit v1.2.3-70-g09d2