pull/8/head
Bohan Yang 7 years ago
parent 6ce744a110
commit c3256ffa3a
  1. 6
      README.md
  2. 6
      netboot.sh

@ -20,7 +20,7 @@ This script is used to re-install VPS to Debian 9 with the official installer, b
- `--ip` - `--ip`
- `--netmask` - `--netmask`
- `--gateway` - `--gateway`
- `--ns "1.1.1.1 1.0.0.1"` - `--ns "1.1.1.1 1.0.0.1 8.8.8.8"`
- `--hostname debian` - `--hostname debian`
- `--ssh-password` - `--ssh-password`
- `--ssh-keys` - `--ssh-keys`
@ -49,7 +49,7 @@ This script is used to re-install VPS to Debian 9 with the official installer, b
### `china` ### `china`
- `--ns "156.154.70.5 156.154.71.5"` - `--ns "156.154.70.5 156.154.71.5 8.8.8.8"`
- `--protocol https` - `--protocol https`
- `--mirror chinanet.mirrors.ustc.edu.cn` - `--mirror chinanet.mirrors.ustc.edu.cn`
- `--security true` - `--security true`
@ -61,4 +61,4 @@ This script is used to re-install VPS to Debian 9 with the official installer, b
- `--protocol https` - `--protocol https`
- `--mirror cdn-aws.deb.debian.org` - `--mirror cdn-aws.deb.debian.org`
- `--security true` - `--security true`
- `--ntp time.google.com` - `--ntp time.cloudflare.com`

@ -157,7 +157,7 @@ done
if [ -n "$DEBI_PRESET" ]; then if [ -n "$DEBI_PRESET" ]; then
case "$DEBI_PRESET" in case "$DEBI_PRESET" in
china) china)
DEBI_NS=${DEBI_NS:-156.154.70.5 156.154.71.5} DEBI_NS=${DEBI_NS:-156.154.70.5 156.154.71.5 8.8.8.8}
DEBI_PROTOCOL=${DEBI_PROTOCOL:-https} DEBI_PROTOCOL=${DEBI_PROTOCOL:-https}
DEBI_MIRROR=${DEBI_MIRROR:-chinanet.mirrors.ustc.edu.cn} DEBI_MIRROR=${DEBI_MIRROR:-chinanet.mirrors.ustc.edu.cn}
DEBI_TIMEZONE=${DEBI_TIMEZONE:-Asia/Shanghai} DEBI_TIMEZONE=${DEBI_TIMEZONE:-Asia/Shanghai}
@ -167,7 +167,7 @@ if [ -n "$DEBI_PRESET" ]; then
cloud) cloud)
DEBI_PROTOCOL=${DEBI_PROTOCOL:-https} DEBI_PROTOCOL=${DEBI_PROTOCOL:-https}
DEBI_MIRROR=${DEBI_MIRROR:-cdn-aws.deb.debian.org} DEBI_MIRROR=${DEBI_MIRROR:-cdn-aws.deb.debian.org}
DEBI_NTP=${DEBI_NTP:-time.google.com} DEBI_NTP=${DEBI_NTP:-time.cloudflare.com}
DEBI_SECURITY=${DEBI_SECURITY:-true} DEBI_SECURITY=${DEBI_SECURITY:-true}
;; ;;
*) *)
@ -206,7 +206,7 @@ d-i keyboard-configuration/xkb-keymap select us
d-i netcfg/choose_interface select auto d-i netcfg/choose_interface select auto
EOF EOF
DEBI_NS=${DEBI_NS:-1.1.1.1 1.0.0.1} DEBI_NS=${DEBI_NS:-1.1.1.1 1.0.0.1 8.8.8.8}
if [ -n "$DEBI_IP" ]; then if [ -n "$DEBI_IP" ]; then
echo 'd-i netcfg/disable_autoconfig boolean true' | $save_preseed echo 'd-i netcfg/disable_autoconfig boolean true' | $save_preseed

Loading…
Cancel
Save