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.
This commit is contained in:
parent
819c7294c6
commit
cbc547332e
|
@ -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.";
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue