mirror of
https://github.com/hanwckf/immortalwrt-mt798x.git
synced 2025-01-09 02:43:53 +08:00
treewide: add mirrors for ChinaNet
This commit is contained in:
parent
2829c98d0d
commit
123401f23f
@ -251,10 +251,10 @@ generate_static_system() {
|
|||||||
set system.ntp='timeserver'
|
set system.ntp='timeserver'
|
||||||
set system.ntp.enabled='1'
|
set system.ntp.enabled='1'
|
||||||
set system.ntp.enable_server='0'
|
set system.ntp.enable_server='0'
|
||||||
|
add_list system.ntp.server='ntp1.aliyun.com'
|
||||||
|
add_list system.ntp.server='time1.cloud.tencent.com'
|
||||||
|
add_list system.ntp.server='time.ustc.edu.cn'
|
||||||
add_list system.ntp.server='0.openwrt.pool.ntp.org'
|
add_list system.ntp.server='0.openwrt.pool.ntp.org'
|
||||||
add_list system.ntp.server='1.openwrt.pool.ntp.org'
|
|
||||||
add_list system.ntp.server='2.openwrt.pool.ntp.org'
|
|
||||||
add_list system.ntp.server='3.openwrt.pool.ntp.org'
|
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
if json_is_a system object; then
|
if json_is_a system object; then
|
||||||
|
@ -194,6 +194,7 @@ foreach my $mirror (@ARGV) {
|
|||||||
push @mirrors, "https://downloads.sourceforge.net/$1";
|
push @mirrors, "https://downloads.sourceforge.net/$1";
|
||||||
}
|
}
|
||||||
} elsif ($mirror =~ /^\@APACHE\/(.+)$/) {
|
} elsif ($mirror =~ /^\@APACHE\/(.+)$/) {
|
||||||
|
push @mirrors, "https://mirrors.ustc.edu.cn/apache/$1";
|
||||||
push @mirrors, "https://mirror.netcologne.de/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.aarnet.edu.au/pub/apache/$1";
|
||||||
push @mirrors, "https://mirror.csclub.uwaterloo.ca/apache/$1";
|
push @mirrors, "https://mirror.csclub.uwaterloo.ca/apache/$1";
|
||||||
@ -213,6 +214,7 @@ foreach my $mirror (@ARGV) {
|
|||||||
push @mirrors, "https://raw.githubusercontent.com/$dir";
|
push @mirrors, "https://raw.githubusercontent.com/$dir";
|
||||||
}
|
}
|
||||||
} elsif ($mirror =~ /^\@GNU\/(.+)$/) {
|
} elsif ($mirror =~ /^\@GNU\/(.+)$/) {
|
||||||
|
push @mirrors, "https://mirrors.ustc.edu.cn/gnu/$1";
|
||||||
push @mirrors, "https://mirror.csclub.uwaterloo.ca/gnu/$1";
|
push @mirrors, "https://mirror.csclub.uwaterloo.ca/gnu/$1";
|
||||||
push @mirrors, "https://mirror.netcologne.de/gnu/$1";
|
push @mirrors, "https://mirror.netcologne.de/gnu/$1";
|
||||||
push @mirrors, "http://ftp.kddilabs.jp/GNU/gnu/$1";
|
push @mirrors, "http://ftp.kddilabs.jp/GNU/gnu/$1";
|
||||||
@ -249,6 +251,7 @@ foreach my $mirror (@ARGV) {
|
|||||||
push @mirrors, "ftp://www.mirrorservice.org/sites/ftp.kernel.org/pub/$dir";
|
push @mirrors, "ftp://www.mirrorservice.org/sites/ftp.kernel.org/pub/$dir";
|
||||||
}
|
}
|
||||||
} elsif ($mirror =~ /^\@GNOME\/(.+)$/) {
|
} elsif ($mirror =~ /^\@GNOME\/(.+)$/) {
|
||||||
|
push @mirrors, "https://mirrors.ustc.edu.cn/gnome/sources/$1";
|
||||||
push @mirrors, "https://mirror.csclub.uwaterloo.ca/gnome/sources/$1";
|
push @mirrors, "https://mirror.csclub.uwaterloo.ca/gnome/sources/$1";
|
||||||
push @mirrors, "http://ftp.acc.umu.se/pub/GNOME/sources/$1";
|
push @mirrors, "http://ftp.acc.umu.se/pub/GNOME/sources/$1";
|
||||||
push @mirrors, "http://ftp.kaist.ac.kr/gnome/sources/$1";
|
push @mirrors, "http://ftp.kaist.ac.kr/gnome/sources/$1";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user