aboutsummaryrefslogtreecommitdiffstats
path: root/capsman-download-packages.wifi.rsc
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2023-12-20 12:29:24 +0100
committerGravatar Christian Hesse <mail@eworm.de>2023-12-20 12:29:24 +0100
commit0377064f65e124aa7ce060f18310fb65976b412e (patch)
treec5379abb2892604a0c60b11dc6a110e1627cacb3 /capsman-download-packages.wifi.rsc
parent5aaa24b50737686f81bf16ec22c39f1b7a596420 (diff)
capsman-download-packages: avaiable packages only...
... as things became more complicated with 'wifi-qcom*'.
Diffstat (limited to 'capsman-download-packages.wifi.rsc')
-rw-r--r--capsman-download-packages.wifi.rsc4
1 files changed, 3 insertions, 1 deletions
diff --git a/capsman-download-packages.wifi.rsc b/capsman-download-packages.wifi.rsc
index 3552924..89fe0dc 100644
--- a/capsman-download-packages.wifi.rsc
+++ b/capsman-download-packages.wifi.rsc
@@ -56,7 +56,9 @@ $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"; "wifi-qcom"; "wifi-qcom-ac" } do={
+ :local Packages { "arm"={ "routeros"; "wifi-qcom"; "wifi-qcom-ac" };
+ "arm64"={ "routeros"; "wifi-qcom" } };
+ :foreach Package in=($Packages->$Arch) do={
:if ([ $DownloadPackage $Package $InstalledVersion $Arch $PackagePath ] = true) do={
:set Updated true;
}