From d5edcbd3b6396f47358428dc376c5c9a81035f6d Mon Sep 17 00:00:00 2001 From: Michael Gisbers Date: Mon, 28 Jun 2021 18:00:25 +0200 Subject: 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. --- check-routeros-update | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'check-routeros-update') 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; } } -- cgit v1.2.3-54-g00ecf