check-routeros-update: allow update for cap
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.
This commit is contained in:
parent
877e95d4be
commit
d5edcbd3b6
6 changed files with 10 additions and 4 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue