Просмотр исходного кода

Version 3.1.0

[Version 3.1.0]
The latest stable version.
MeowLove 5 лет назад
Родитель
Сommit
85544aa291
2 измененных файлов с 41 добавлено и 7 удалено
  1. 36 2
      Network-Reinstall-System-Modify.sh
  2. 5 5
      README.md

+ 36 - 2
Network-Reinstall-System-Modify.sh

@@ -21,7 +21,7 @@ echo -e "\n\n\n"
 clear
 echo -e "\n"
 echo "---------------------------------------------------------------------------------------------------------------------"
-echo -e "\033[33m Network-Reinstall-System-Modify Tools V3.0.1 2020/09/10 \033[0m"
+echo -e "\033[33m Network-Reinstall-System-Modify Tools V3.1.0 2020/09/15 \033[0m"
 echo -e "\033[33m [Magic Modify] Reinstall the system (any Windows / Linux) requires only network and one click \033[0m"
 echo -e "\033[33m System requirements: Any Linux system with GRUB or GRUB2, recommended CentOS8/Debian10/Ubuntu20 \033[0m"
 echo -e "\n"
@@ -31,7 +31,41 @@ echo "--------------------------------------------------------------------------
 echo " Default password: cxthhhhh.com"
 echo "---------------------------------------------------------------------------------------------------------------------"
 echo -e "\n"
-sleep 8s
+sleep 6s
+
+echo "---------------------------------------------------------------------------------------------------------------------"
+echo " Pre-environment preparation. . ."
+echo "---------------------------------------------------------------------------------------------------------------------"
+echo -e "\n"
+sleep 2s
+
+if [ -f "/usr/bin/apt-get" ];then
+	isDebian=`cat /etc/issue|grep Debian`
+	if [ "$isDebian" != "" ];then
+		echo 'Current system is Debian'
+		apt-get install -y xz-utils openssl gawk file wget curl
+		apt install -y xz-utils openssl gawk file wget curl
+		sleep 3s
+	else
+		echo 'Current system is Ubuntu'
+		apt-get install -y xz-utils openssl gawk file wget curl
+		apt install -y xz-utils openssl gawk file wget curl
+		sleep 3s
+	fi
+else
+    echo 'Current system is CentOS'
+    yum install -y xz openssl gawk file wget curl
+    sleep 3s
+fi
+
+echo "---------------------------------------------------------------------------------------------------------------------"
+echo " Pre-environment preparation. . .  【OK】"
+echo -e "\n"
+echo " Start system installation. . . "
+echo "---------------------------------------------------------------------------------------------------------------------"
+echo -e "\n"
+sleep 2s
+
 
 if [ $1 = '-UI_Options' ]
 then

+ 5 - 5
README.md

@@ -1,7 +1,7 @@
 # Network-Reinstall-System-Modify
 It can reinstall CentOS, Debian, Ubuntu, Windows 2003, 7, 2008R2, 2012R2, 2016, 2019 and other systems (continuously added) via the Internet, and can install any system via mounting remote network ISO.
 
-[One-click Network Reinstall System – Magic Modify version](https://www.cxthhhhh.com/), Forked from [MoeClub Vicer](https://moeclub.org/), technical support and maintenance provided by [Technical Blog | 技術博客 | CXT - Enjoy Life | 生活、技术、交友、分享 - 自天佑之,吉无不利](https://www.cxthhhhh.com/), more features of the magic version are constantly increasing.
+[One-click Network Reinstall System – Magic Modify version](https://www.cxthhhhh.com/network-reinstall-system-modify), Forked from [MoeClub Vicer](https://moeclub.org/), technical support and maintenance provided by [Technical Blog | 技術博客 | CXT - Enjoy Life | 生活、技术、交友、分享 - 自天佑之,吉无不利](https://www.cxthhhhh.com/), more features of the magic version are constantly increasing.
 
 
 ## Realistic Demand
@@ -18,10 +18,10 @@ Why do we need to reinstall a pure system?
 Where are the release notes and tutorials?
 
 1. If you are from an English community, please click here.  
-https://www.cxthhhhh.com/  
+https://www.cxthhhhh.com/network-reinstall-system-modify  
 
 2. 如果你来自于中文社区,请点击这里。  
-https://www.cxthhhhh.com/  
+https://www.cxthhhhh.com/network-reinstall-system-modify  
 
 
 ## Common Problem
@@ -48,8 +48,8 @@ A:You can join my Telegram channel and discussion groups for instant communica
 ## End Notes
 [Network-Reinstall-System-Modify](https://www.cxthhhhh.com/)
 
-Version:V3.0.1  
-Date:2020/09/10
+Version:V3.1.0  
+Date:2020/09/15
 
 [CXT - Enjoy Life | 生活、技术、交友、分享 - 自天佑之,吉无不利](https://www.cxthhhhh.com/)  
 https://www.cxthhhhh.com/