Browse Source

Update debi.sh

Brent, Bohan Yang 2 years ago
parent
commit
8b42031edf
1 changed files with 11 additions and 3 deletions
  1. 11 3
      debi.sh

+ 11 - 3
debi.sh

@@ -197,6 +197,7 @@ ip=
 netmask=
 netmask=
 gateway=
 gateway=
 dns='8.8.8.8 8.8.4.4'
 dns='8.8.8.8 8.8.4.4'
+dns6='2001:4860:4860::8888 2001:4860:4860::8844'
 hostname=
 hostname=
 network_console=false
 network_console=false
 set_debian_version 12
 set_debian_version 12
@@ -252,18 +253,21 @@ while [ $# -gt 0 ]; do
             ;;
             ;;
         --aliyun)
         --aliyun)
             dns='223.5.5.5 223.6.6.6'
             dns='223.5.5.5 223.6.6.6'
+            dns6='2400:3200::1 2400:3200:baba::1'
             mirror_host=mirrors.aliyun.com
             mirror_host=mirrors.aliyun.com
-            ntp=ntp.aliyun.com
+            ntp=time.amazonaws.cn
             ;;
             ;;
         --ustc|--china)
         --ustc|--china)
             dns='119.29.29.29'
             dns='119.29.29.29'
+            dns6='2402:4e00::'
             mirror_host=mirrors.ustc.edu.cn
             mirror_host=mirrors.ustc.edu.cn
-            ntp=time.ustc.edu.cn
+            ntp=time.amazonaws.cn
             ;;
             ;;
         --tuna)
         --tuna)
             dns='119.29.29.29'
             dns='119.29.29.29'
+            dns6='2402:4e00::'
             mirror_host=mirrors.tuna.tsinghua.edu.cn
             mirror_host=mirrors.tuna.tsinghua.edu.cn
-            ntp=ntp.tuna.tsinghua.edu.cn
+            ntp=time.amazonaws.cn
             ;;
             ;;
         --interface)
         --interface)
             interface=$2
             interface=$2
@@ -285,6 +289,10 @@ while [ $# -gt 0 ]; do
             dns=$2
             dns=$2
             shift
             shift
             ;;
             ;;
+        --dns6)
+            dns6=$2
+            shift
+            ;;
         --hostname)
         --hostname)
             hostname=$2
             hostname=$2
             shift
             shift