mirror of
https://github.com/armbian/build
synced 2025-09-24 19:47:06 +07:00
Add bfsu mirror as another mirror of tuna (#2682)
* add bfsu for china mirror
This commit is contained in:
@@ -64,6 +64,7 @@ fi
|
||||
case $MAINLINE_MIRROR in
|
||||
google) MAINLINE_KERNEL_SOURCE='https://kernel.googlesource.com/pub/scm/linux/kernel/git/stable/linux-stable' ;;
|
||||
tuna) MAINLINE_KERNEL_SOURCE='https://mirrors.tuna.tsinghua.edu.cn/git/linux-stable.git' ;;
|
||||
bfsu) MAINLINE_KERNEL_SOURCE='https://mirrors.bfsu.edu.cn/git/linux-stable.git' ;;
|
||||
*) MAINLINE_KERNEL_SOURCE='git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git' ;;
|
||||
esac
|
||||
MAINLINE_KERNEL_DIR='linux-mainline'
|
||||
@@ -491,12 +492,18 @@ DEBIAN_MIRROR='deb.debian.org/debian'
|
||||
DEBIAN_SECURTY='security.debian.org/'
|
||||
UBUNTU_MIRROR='ports.ubuntu.com/'
|
||||
|
||||
if [[ $DOWNLOAD_MIRROR == china ]] ; then
|
||||
if [[ $DOWNLOAD_MIRROR == "china" ]] ; then
|
||||
DEBIAN_MIRROR='mirrors.tuna.tsinghua.edu.cn/debian'
|
||||
DEBIAN_SECURTY='mirrors.tuna.tsinghua.edu.cn/debian-security'
|
||||
UBUNTU_MIRROR='mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/'
|
||||
fi
|
||||
|
||||
if [[ $DOWNLOAD_MIRROR == "bfsu" ]] ; then
|
||||
DEBIAN_MIRROR='mirrors.bfsu.edu.cn/debian'
|
||||
DEBIAN_SECURTY='mirrors.bfsu.edu.cn/debian-security'
|
||||
UBUNTU_MIRROR='mirrors.bfsu.edu.cn/ubuntu-ports/'
|
||||
fi
|
||||
|
||||
# don't use mirrors that throws garbage on 404
|
||||
while true; do
|
||||
|
||||
|
||||
Reference in New Issue
Block a user