aboutsummaryrefslogtreecommitdiffstats
path: root/capsman-download-packages.wifiwave2.rsc
diff options
context:
space:
mode:
Diffstat (limited to 'capsman-download-packages.wifiwave2.rsc')
-rw-r--r--capsman-download-packages.wifiwave2.rsc11
1 files changed, 11 insertions, 0 deletions
diff --git a/capsman-download-packages.wifiwave2.rsc b/capsman-download-packages.wifiwave2.rsc
index af8b8e5..6a12b2d 100644
--- a/capsman-download-packages.wifiwave2.rsc
+++ b/capsman-download-packages.wifiwave2.rsc
@@ -53,6 +53,17 @@ $WaitFullyConnected;
}
}
+:if ([ :len [ /file/find where type=package name~("^" . $PackagePath) ] ] = 0) do={
+ $LogPrintExit2 info $0 ("No packages available, downloading default set.") false;
+ :foreach Arch in={ "arm"; "arm64" } do={
+ :foreach Package in={ "routeros"; "wifiwave2" } do={
+ :if ([ $DownloadPackage $Package $InstalledVersion $Arch $PackagePath ] = true) do={
+ :set Updated true;
+ }
+ }
+ }
+}
+
:if ($Updated = true) do={
:local Script ([ /system/script/find where source~"\n# provides: capsman-rolling-upgrade\n" ]->0);
:if ([ :len $Script ] > 0) do={