瀏覽代碼

Update mirrors for China

Close #111 

Link #52
Brent, Bohan Yang 2 年之前
父節點
當前提交
212de4be3b
共有 1 個文件被更改,包括 11 次插入7 次删除
  1. 11 7
      debi.sh

+ 11 - 7
debi.sh

@@ -245,21 +245,25 @@ cidata=
 while [ $# -gt 0 ]; do
     case $1 in
         --cdn)
-            mirror_protocol=https
             mirror_host=deb.debian.org
-            security_repository=mirror
             ;;
         --aws)
-            mirror_protocol=https
             mirror_host=cdn-aws.deb.debian.org
-            security_repository=mirror
             ;;
-        --china)
+        --aliyun)
             dns='223.5.5.5 223.6.6.6'
-            mirror_protocol=https
             mirror_host=mirrors.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=$2