Update mirrors for China

Close #111 

Link #52
pull/114/head
Brent, Bohan Yang 2 years ago committed by GitHub
parent 88ee869a6e
commit 212de4be3b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 18
      debi.sh

@ -245,21 +245,25 @@ cidata=
while [ $# -gt 0 ]; do while [ $# -gt 0 ]; do
case $1 in case $1 in
--cdn) --cdn)
mirror_protocol=https
mirror_host=deb.debian.org mirror_host=deb.debian.org
security_repository=mirror
;; ;;
--aws) --aws)
mirror_protocol=https
mirror_host=cdn-aws.deb.debian.org mirror_host=cdn-aws.deb.debian.org
security_repository=mirror
;; ;;
--china) --aliyun)
dns='223.5.5.5 223.6.6.6' dns='223.5.5.5 223.6.6.6'
mirror_protocol=https
mirror_host=mirrors.aliyun.com mirror_host=mirrors.aliyun.com
ntp=ntp.aliyun.com ntp=ntp.aliyun.com
security_repository=mirror ;;
--ustc|--china)
dns='119.29.29.29'
mirror_host=mirrors.ustc.edu.cn
ntp=time.ustc.edu.cn
;;
--tuna)
dns='119.29.29.29'
mirror_host=mirrors.tuna.tsinghua.edu.cn
ntp=ntp.tuna.tsinghua.edu.cn
;; ;;
--interface) --interface)
interface=$2 interface=$2

Loading…
Cancel
Save