aboutsummaryrefslogtreecommitdiffstats
path: root/capsman-download-packages.wifiwave2.rsc
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2023-08-07 16:44:26 +0200
committerGravatar Christian Hesse <mail@eworm.de>2023-08-09 16:30:18 +0200
commit3cab917a61cb84b08f99bd7b4a7b59b1a41024ac (patch)
tree62502f529d5b1ef4b11cd1f73e057df569de23cd /capsman-download-packages.wifiwave2.rsc
parent8428ba890da07417bf5ee58deaa0a04a8fb18f30 (diff)
capsman-download-packages: no download of missing package for wifiwave2
Sadly the log messages from wifiwave2 do not contain any hint what is missing... So it's not possible to download missing files.
Diffstat (limited to 'capsman-download-packages.wifiwave2.rsc')
-rw-r--r--capsman-download-packages.wifiwave2.rsc26
1 files changed, 0 insertions, 26 deletions
diff --git a/capsman-download-packages.wifiwave2.rsc b/capsman-download-packages.wifiwave2.rsc
index 817f7d9..af8b8e5 100644
--- a/capsman-download-packages.wifiwave2.rsc
+++ b/capsman-download-packages.wifiwave2.rsc
@@ -53,32 +53,6 @@ $WaitFullyConnected;
}
}
-:if ([ :len [ /system/logging/find where topics~"error" !(topics~"!error") \
- !(topics~"!caps") action=memory !disabled !invalid ] ] < 1) do={
- $LogPrintExit2 warning $0 ("Looks like error messages for 'caps' are not sent to memory. " . \
- "Probably can not download packages automatically.") false;
-} else={
- :if ($Updated = false && [ /system/resource/get uptime ] < 2m) do={
- $LogPrintExit2 info $0 ("No packages downloaded, yet. Delaying for logs.") false;
- :delay 2m;
- }
-}
-
-:foreach Log in=[ /log/find where topics=({"caps"; "error"}) \
- message~("upgrade status: failed, failed to download file '.*-" . $InstalledVersion . \
- "-.*\\.npk', no such file") ] do={
- :local Message [ /log/get $Log message ];
- :local Package [ :pick $Message \
- ([ :find $Message "'" ] + 1) \
- [ :find $Message ("-" . $InstalledVersion . "-") ] ];
- :local Arch [ :pick $Message \
- ([ :find $Message ("-" . $InstalledVersion . "-") ] + 2 + [ :len $InstalledVersion ]) \
- [ :find $Message ".npk" ] ];
- :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={