1
0
mirror of https://git.openwrt.org/openwrt/openwrt.git synced 2024-10-18 05:18:14 +02:00
openwrt/scripts
Christian Marangi f17608ddca
scripts/download.pl: make the download tool configurable
Introduce a new option in the "Advanced configuration options" to
configure a custom download tool.

By declaring a string in "Use custom download tool" an user can force
what command to use to download package. With the string empty the
default tool used is curl, with wget as a fallback if not available.

download.pl supports 3 tools officially aria2c, curl and wget.
If one of the tool is used in this config, download.pl will use the
default args to make use of them.

If the provided string is different than aria2c, curl or wget, the command
is used as is and the download url will be appended at the end of such command.

While at it also tweak the tool selection logic and chose the tool only
once when the script is called and move aria2c specific variables in the
relevant section.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
2022-10-20 00:35:19 +02:00
..
config
flashing
arm-magic.sh
brcmImage.pl
bundle-libraries.sh
cameo-imghdr.py
cameo-tag.py
cfe-bin-header.py
cfe-partition-tag.py
cfe-wfi-tag.py
check-toolchain-clean.sh
checkpatch.pl
clean-package.sh
cleanfile
cleanpatch
combined-ext-image.sh
combined-image.sh
command_all.sh
config.guess
config.rpath
config.sub
const_structs.checkpatch
deptest.sh
diffconfig.sh
dl_cleanup.py
dl_github_archive.py
download.pl scripts/download.pl: make the download tool configurable 2022-10-20 00:35:19 +02:00
dump-target-info.pl
env
ext-toolchain.sh
ext-tools.sh
feeds
fixup-makefile.pl
functions.sh
gen_image_generic.sh
gen-dependencies.sh
get_source_date_epoch.sh
getver.sh
ipkg-build
ipkg-make-index.sh
ipkg-remove
json_add_image_info.py
json_overview_image_info.py
kconfig.pl
linksys-image.sh
make-ipkg-dir.sh
md5sum
metadata.pm
mkhash.c
mkits-qsdk-ipq-image.sh
mkits-zyxel-fit.sh
mkits.sh
netgear-encrypted-factory.py
om-fwupgradecfg-gen.sh
package-metadata.pl
pad_image
patch-kernel.sh
patch-specs.sh
portable_date.sh
qemustart
redboot-script.pl
relink-lib.sh
remote-gdb
rstrip.sh
sercomm-crypto.py
sercomm-kernel-header.py
sercomm-partition-tag.py
sercomm-payload.py
sercomm-pid.py
sign_images.sh
size_compare.sh
slugimage.pl
spelling.txt
srecimage.pl
strip-kmod.sh
symlink-tree.sh
sysupgrade-tar.sh
target-metadata.pl
time.pl
timestamp.pl
ubinize-image.sh
xxdi.pl