scripts/mkits.sh: DT overlays don't need a loadaddr
[openwrt/staging/stintel.git] / scripts / download.pl
index 79ad8bfea01886ce153107d767b87e6d6804ece4..676c6e9e6b10b6a44ed2bbc03a7ba3c983aaf639 100755 (executable)
@@ -129,6 +129,7 @@ sub download_cmd {
                        $check_certificate ? () : '--check-certificate=false',
                        "--server-stat-of=$ENV{'TMPDIR'}/aria2c/${rfn}_spp",
                        "--server-stat-if=$ENV{'TMPDIR'}/aria2c/${rfn}_spp",
+                       "--daemon=false --no-conf", shellwords($ENV{ARIA2C_OPTIONS} || ''),
                        "-d $ENV{'TMPDIR'}/aria2c -o $rfn;",
                        "cat $ENV{'TMPDIR'}/aria2c/$rfn;",
                        "rm $ENV{'TMPDIR'}/aria2c/$rfn $ENV{'TMPDIR'}/aria2c/${rfn}_spp");
@@ -254,6 +255,7 @@ foreach my $mirror (@ARGV) {
                push @mirrors, "https://mirrors.tuna.tsinghua.edu.cn/debian/$1";
                push @mirrors, "https://mirrors.ustc.edu.cn/debian/$1"
        } elsif ($mirror =~ /^\@APACHE\/(.+)$/) {
+               push @mirrors, "https://dlcdn.apache.org/$1";
                push @mirrors, "https://mirror.netcologne.de/apache.org/$1";
                push @mirrors, "https://mirror.aarnet.edu.au/pub/apache/$1";
                push @mirrors, "https://mirror.csclub.uwaterloo.ca/apache/$1";