diff options
author | Nicolas Thill <nico@openwrt.org> | 2005-06-08 06:48:19 +0000 |
---|---|---|
committer | Nicolas Thill <nico@openwrt.org> | 2005-06-08 06:48:19 +0000 |
commit | 36110909d1e229ff2a6a01956ef04689d173a16c (patch) | |
tree | 7aed210dbef5ef11d1eea979253ef4fae6b3bf1e /openwrt/scripts/download.pl | |
parent | c99ea6649ec889e8cbdc34ec6d0b78c94ffd41ee (diff) | |
download | mtk-20170518-36110909d1e229ff2a6a01956ef04689d173a16c.zip mtk-20170518-36110909d1e229ff2a6a01956ef04689d173a16c.tar.gz mtk-20170518-36110909d1e229ff2a6a01956ef04689d173a16c.tar.bz2 |
Add GNU download facility
SVN-Revision: 1170
Diffstat (limited to 'openwrt/scripts/download.pl')
-rwxr-xr-x | openwrt/scripts/download.pl | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/openwrt/scripts/download.pl b/openwrt/scripts/download.pl index 8042e2d..482f7af 100755 --- a/openwrt/scripts/download.pl +++ b/openwrt/scripts/download.pl @@ -64,12 +64,19 @@ foreach my $mirror (@ARGV) { }; } close SF; + } elsif ($mirror =~ /^\@GNU\/(.+)$/) { + my $gnupath = $1; + push @mirrors, "ftp://ftp.gnu.org/gnu/$gnupath"; + push @mirrors, "ftp://ftp.belnet.be/mirror/ftp.gnu.org/gnu/$gnupath"; + push @mirrors, "ftp://ftp.mirror.nl/pub/mirror/gnu/$gnupath"; + push @mirrors, "http://mirror.switch.ch/ftp/mirror/gnu/$gnupath"; } else { push @mirrors, $mirror; } } push @mirrors, 'http://openwrt.inf.fh-brs.de/mirror'; +push @mirrors, 'http://openwrt.org/download/sources/'; while (!$ok) { my $mirror = shift @mirrors; |