mirror of
https://github.com/leitbogioro/Tools.git
synced 2024-11-15 21:54:40 +08:00
Update InstallNET.sh
This commit is contained in:
parent
b84afc6c2b
commit
bb2b5e7163
1 changed files with 5 additions and 5 deletions
|
@ -701,14 +701,14 @@ function DebianModifiedPreseed(){
|
|||
# Need to install "resolvconf" manually after all installation ended, logged into new system.
|
||||
# DNS server validation must setting up in installed system, can't in preseeding!
|
||||
# Set China DNS server from USTC and Tsinghua University permanently
|
||||
SetDNS="CNResolvHead"
|
||||
SetDNS="CNResolvHead"
|
||||
DnsChangePermanently="$1 mkdir -p /etc/resolvconf/resolv.conf.d/; $1 wget --no-check-certificate -qO /etc/resolvconf/resolv.conf.d/head 'https://gitee.com/mb9e8j2/Tools/raw/master/Linux_reinstall/${SetDNS}';"
|
||||
# Modify logging in welcome information(Message Of The Day) of Debian and make it more pretty.
|
||||
ModifyMOTD="$1 rm -rf /etc/update-motd.d/ /etc/motd /run/motd.dynamic; $1 mkdir -p /etc/update-motd.d/; $1 wget --no-check-certificate -qO /etc/update-motd.d/00-header 'https://gitee.com/mb9e8j2/Tools/raw/master/Linux_reinstall/updatemotd/00-header'; $1 wget --no-check-certificate -qO /etc/update-motd.d/10-sysinfo 'https://gitee.com/mb9e8j2/Tools/raw/master/Linux_reinstall/updatemotd/10-sysinfo'; $1 wget --no-check-certificate -qO /etc/update-motd.d/90-footer 'https://gitee.com/mb9e8j2/Tools/raw/master/Linux_reinstall/updatemotd/90-footer'; $1 chmod +x /etc/update-motd.d/00-header; $1 chmod +x /etc/update-motd.d/10-sysinfo; $1 chmod +x /etc/update-motd.d/90-footer;"
|
||||
else
|
||||
else
|
||||
ChangeBashrc="$1 rm -rf /root/.bashrc; $1 wget --no-check-certificate -qO /root/.bashrc 'https://raw.githubusercontent.com/leitbogioro/Tools/master/Linux_reinstall/.bashrc';"
|
||||
# Set DNS server from CloudFlare and Google permanently
|
||||
SetDNS="NomalResolvHead"
|
||||
SetDNS="NomalResolvHead"
|
||||
DnsChangePermanently="$1 mkdir -p /etc/resolvconf/resolv.conf.d/; $1 wget --no-check-certificate -qO /etc/resolvconf/resolv.conf.d/head 'https://raw.githubusercontent.com/leitbogioro/Tools/master/Linux_reinstall/${SetDNS}';"
|
||||
ModifyMOTD="$1 rm -rf /etc/update-motd.d/ /etc/motd /run/motd.dynamic; $1 mkdir -p /etc/update-motd.d/; $1 wget --no-check-certificate -qO /etc/update-motd.d/00-header 'https://raw.githubusercontent.com/leitbogioro/Tools/master/Linux_reinstall/updatemotd/00-header'; $1 wget --no-check-certificate -qO /etc/update-motd.d/10-sysinfo 'https://raw.githubusercontent.com/leitbogioro/Tools/master/Linux_reinstall/updatemotd/10-sysinfo'; $1 wget --no-check-certificate -qO /etc/update-motd.d/90-footer 'https://raw.githubusercontent.com/leitbogioro/Tools/master/Linux_reinstall/updatemotd/90-footer'; $1 chmod +x /etc/update-motd.d/00-header; $1 chmod +x /etc/update-motd.d/10-sysinfo; $1 chmod +x /etc/update-motd.d/90-footer;"
|
||||
fi
|
||||
|
@ -891,8 +891,8 @@ checkSys
|
|||
|
||||
checkIpv4OrIpv6
|
||||
|
||||
# Youtube and Instagram both have public IPv4 and IPv6 address and are also banned in mainland China.
|
||||
checkCN "www.youtube.com" "www.instagram.com" "www.twitter.com" "$IPStackType"
|
||||
# Youtube, Instagram and Wikipedia all have public IPv4 and IPv6 address and are also banned in mainland China.
|
||||
checkCN "www.youtube.com" "www.instagram.com" "www.wikipedia.org" "$IPStackType"
|
||||
|
||||
checkEfi "/sys/firmware/efi/efivars/" "/sys/firmware/efi/mok-variables/" "/sys/firmware/efi/runtime-map/" "/sys/firmware/efi/vars/"
|
||||
|
||||
|
|
Loading…
Reference in a new issue