aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Michael Gisbers <michael@gisbers.de>2018-12-27 12:55:21 +0100
committerGravatar Christian Hesse <mail@eworm.de>2018-12-27 21:32:00 +0100
commite1f5f7254a530439529cdcac43153b2c33c2660e (patch)
tree782290f0d6a31a109051069f838dc0abc9dd97ac
parentecc475af3ef218ecb36d63b2707816fbde8a8c1e (diff)
capsman-download-packages: rewrite package-name from wireless@ to wireless
Signed-off-by: Michael Gisbers <michael@gisbers.de> Signed-off-by: Christian Hesse <mail@eworm.de>
-rw-r--r--capsman-download-packages4
1 files changed, 4 insertions, 0 deletions
diff --git a/capsman-download-packages b/capsman-download-packages
index aa14049..5a6bd29 100644
--- a/capsman-download-packages
+++ b/capsman-download-packages
@@ -1,6 +1,7 @@
#!rsc
# RouterOS script: capsman-download-packages
# Copyright (c) 2018 Christian Hesse <mail@eworm.de>
+# Michael Gisbers <michael@gisbers.de>
#
# requires: dont-require-permissions=yes
#
@@ -19,6 +20,9 @@
:if ($"package-architecture" = "mips") do={
:set "package-architecture" "mipsbe";
}
+ :if ($"package-name" = "wireless@") do={
+ :set "package-name" "wireless";
+ }
:local "package-file" ($"package-name" . "-" . $"installed-version" . "-" . $"package-architecture" . ".npk");
$CertificateAvailable "Let's Encrypt Authority X3" "letsencrypt";
/ tool fetch mode=https check-certificate=yes-without-crl \