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>
This commit is contained in:
Michael Gisbers 2018-12-27 12:55:21 +01:00 committed by Christian Hesse
parent ecc475af3e
commit e1f5f7254a

View file

@ -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 \