aboutsummaryrefslogtreecommitdiffstats
path: root/check-routeros-update
diff options
context:
space:
mode:
authorGravatar Michael Gisbers <michael@gisbers.de>2021-06-28 18:00:25 +0200
committerGravatar Christian Hesse <mail@eworm.de>2021-07-01 22:56:18 +0200
commitd5edcbd3b6396f47358428dc376c5c9a81035f6d (patch)
tree333ada59c5c6773f7c6b350d334d547124723c22 /check-routeros-update
parent877e95d4be240835e2153ba4ce5fe615a127eda1 (diff)
check-routeros-update: allow update for capchange-59
If CAPsMAN is running on a device with just 16MB flash downloading the packages is not possible (or at least lost at reboot). So allow a CAP to update with opt-in.
Diffstat (limited to 'check-routeros-update')
-rw-r--r--check-routeros-update4
1 files changed, 3 insertions, 1 deletions
diff --git a/check-routeros-update b/check-routeros-update
index 0309730..d21a7d0 100644
--- a/check-routeros-update
+++ b/check-routeros-update
@@ -12,6 +12,7 @@
:global Identity;
:global SafeUpdateNeighbor;
+:global SafeUpdateOnCap;
:global SafeUpdatePatch;
:global SafeUpdateUrl;
:global SentRouterosUpdateNotification;
@@ -37,7 +38,8 @@ $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) do={
+ [ / caps-man manager get enabled ] = false && \
+ $SafeUpdateOnCap != true) do={
$LogPrintExit2 error $0 ("System is managed by CAPsMAN, not checking for RouterOS version.") true;
}
}