mirror of
https://github.com/eworm-de/routeros-scripts
synced 2024-05-14 08:04:19 +00:00
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:
parent
ecc475af3e
commit
e1f5f7254a
1 changed files with 4 additions and 0 deletions
|
@ -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 \
|
||||
|
|
Loading…
Reference in a new issue