Bläddra i källkod

Version 2.1.2

[Version 2.1.2]
Update Mirrors
Fix Bug
MeowLove 6 år sedan
förälder
incheckning
bbc74cd7d0
2 ändrade filer med 25 tillägg och 25 borttagningar
  1. 4 5
      CoreShell/Core_Install.sh
  2. 21 20
      Network-Reinstall-System-Modify.sh

+ 4 - 5
CoreShell/Core_Install.sh

@@ -9,7 +9,7 @@
 
 
 ## Magic Modify version author:
 ## Magic Modify version author:
 ## Default root password: cxthhhhh.com
 ## Default root password: cxthhhhh.com
-## Blog: https://cxthhhhh.com
+## WebSite: https://www.cxthhhhh.com
 ## Written By CXT (CXTHHHHH.com)
 ## Written By CXT (CXTHHHHH.com)
 
 
 ## Original version author:
 ## Original version author:
@@ -215,8 +215,8 @@ clear && echo -e "\n\033[36m# Check Dependence\033[0m\n"
 
 
 if [[ "$ddMode" == '1' ]]; then
 if [[ "$ddMode" == '1' ]]; then
   CheckDependence iconv;
   CheckDependence iconv;
-  linux_relese='ubuntu';
-  tmpDIST='bionic';
+  linux_relese='debian';
+  tmpDIST='stretch';
   tmpVER='amd64';
   tmpVER='amd64';
   tmpINS='auto';
   tmpINS='auto';
 fi
 fi
@@ -331,7 +331,7 @@ if [[ "$SpikCheckDIST" == '0' ]]; then
 fi
 fi
 
 
 [[ "$ddMode" == '1' ]] && {
 [[ "$ddMode" == '1' ]] && {
-  export SSL_SUPPORT='https://cxthhhhh.com/tech-tools/Network-Reinstall-System-Modify/wget_udeb_amd64.tar.gz';
+  export SSL_SUPPORT='https://www.cxthhhhh.com/tech-tools/Network-Reinstall-System-Modify/CoreFiles/wget_udeb_amd64.tar.gz';
   if [[ -n "$tmpURL" ]]; then
   if [[ -n "$tmpURL" ]]; then
     DDURL="$tmpURL"
     DDURL="$tmpURL"
     echo "$DDURL" |grep -q '^http://\|^ftp://\|^https://';
     echo "$DDURL" |grep -q '^http://\|^ftp://\|^https://';
@@ -389,7 +389,6 @@ if [[ "$linux_relese" == 'centos' ]]; then
     awk 'BEGIN{print '${UNVER}'-'${DIST}'}' |grep -q '^-'
     awk 'BEGIN{print '${UNVER}'-'${DIST}'}' |grep -q '^-'
     if [ $? != '0' ]; then
     if [ $? != '0' ]; then
       UNKNOWHW='1';
       UNKNOWHW='1';
-      echo -en "\033[33mThe version lower then \033[31m$UNVER\033[33m may not support in auto mode! \033[0m\n";
       if [[ "$inVNC" == 'n' ]]; then
       if [[ "$inVNC" == 'n' ]]; then
         echo -en "\033[35mYou can connect VNC with \033[32mPublic IP\033[35m and port \033[32m1\033[35m/\033[32m5901\033[35m in vnc viewer.\033[0m\n"
         echo -en "\033[35mYou can connect VNC with \033[32mPublic IP\033[35m and port \033[32m1\033[35m/\033[32m5901\033[35m in vnc viewer.\033[0m\n"
         read -n 1 -p "Press Enter to continue..." INP
         read -n 1 -p "Press Enter to continue..." INP

+ 21 - 20
Network-Reinstall-System-Modify.sh

@@ -9,7 +9,7 @@
 
 
 ## Magic Modify version author:
 ## Magic Modify version author:
 ## Default root password: cxthhhhh.com
 ## Default root password: cxthhhhh.com
-## Blog: https://cxthhhhh.com
+## WebSite: https://www.cxthhhhh.com
 ## Written By CXT (CXTHHHHH.com)
 ## Written By CXT (CXTHHHHH.com)
 
 
 ## Original version author:
 ## Original version author:
@@ -21,12 +21,12 @@ echo -e "\n\n\n"
 clear
 clear
 echo -e "\n"
 echo -e "\n"
 echo "---------------------------------------------------------------------------------------------------------------------"
 echo "---------------------------------------------------------------------------------------------------------------------"
-echo -e "\033[33m Network-Reinstall-System-Modify Tools V2.0.1 2019/01/06 \033[0m"
+echo -e "\033[33m Network-Reinstall-System-Modify Tools V2.1.0 2019/06/26 \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 [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 CentOS7/Debian9/Ubuntu18.04 \033[0m"
 echo -e "\033[33m System requirements: Any Linux system with GRUB or GRUB2, recommended CentOS7/Debian9/Ubuntu18.04 \033[0m"
 echo -e "\n"
 echo -e "\n"
 echo -e "\033[33m [Original] One-click Network Reinstall System - Magic Modify version (For Linux/Windows) \033[0m"
 echo -e "\033[33m [Original] One-click Network Reinstall System - Magic Modify version (For Linux/Windows) \033[0m"
-echo -e "\033[33m https://cxthhhhh.com/linux/2018/11/27/original-one-click-network-reinstall-system-magic-modify-version-for-linux-windows-en.html \033[0m"
+echo -e "\033[33m https://www.cxthhhhh.com/linux/2018/11/27/original-one-click-network-reinstall-system-magic-modify-version-for-linux-windows-en.html \033[0m"
 echo "---------------------------------------------------------------------------------------------------------------------"
 echo "---------------------------------------------------------------------------------------------------------------------"
 echo -e "\n"
 echo -e "\n"
 sleep 5s
 sleep 5s
@@ -37,7 +37,7 @@ then
 	echo -e "\033[33m You have chosen to install the latest CentOS_7 \033[0m"
 	echo -e "\033[33m You have chosen to install the latest CentOS_7 \033[0m"
 	echo -e "\n"
 	echo -e "\n"
 	sleep 2s
 	sleep 2s
-	wget --no-check-certificate -qO koiok.sh 'https://cxthhhhh.com/tech-tools/Network-Reinstall-System-Modify/CoreShell/Core_Install.sh' && bash koiok.sh -dd 'https://opendisk.cxthhhhh.com/OperatingSystem/CentOS/CentOS_7.X_NetInstallation.vhd.gz'
+	wget --no-check-certificate -qO Core_Install.sh 'https://www.cxthhhhh.com/tech-tools/Network-Reinstall-System-Modify/CoreShell/Core_Install.sh' && bash Core_Install.sh -dd 'https://odc.mirrors.getcdn.net/Operating-System_VvuH8KEgcrS0HtzN/CentOS/CentOS_7.X_NetInstallation.vhd.gz'
 fi
 fi
 
 
 if [ $1 = '-CentOS_6' ]
 if [ $1 = '-CentOS_6' ]
@@ -45,7 +45,7 @@ then
 	echo -e "\033[33m You have chosen to install the latest CentOS_6 \033[0m"
 	echo -e "\033[33m You have chosen to install the latest CentOS_6 \033[0m"
 	echo -e "\n"
 	echo -e "\n"
 	sleep 2s
 	sleep 2s
-	wget --no-check-certificate -qO koiok.sh 'https://cxthhhhh.com/tech-tools/Network-Reinstall-System-Modify/CoreShell/Core_Install.sh' && bash koiok.sh -c 6.9 -v 64 -a
+	wget --no-check-certificate -qO Core_Install.sh 'https://www.cxthhhhh.com/tech-tools/Network-Reinstall-System-Modify/CoreShell/Core_Install.sh' && bash Core_Install.sh -c 6.10 -v 64 -a
 fi
 fi
 
 
 if [ $1 = '-Debian_9' ]
 if [ $1 = '-Debian_9' ]
@@ -53,7 +53,7 @@ then
 	echo -e "\033[33m You have chosen to install the latest Debian_9 \033[0m"
 	echo -e "\033[33m You have chosen to install the latest Debian_9 \033[0m"
 	echo -e "\n"
 	echo -e "\n"
 	sleep 2s
 	sleep 2s
-	wget --no-check-certificate -qO koiok.sh 'https://cxthhhhh.com/tech-tools/Network-Reinstall-System-Modify/CoreShell/Core_Install.sh' && bash koiok.sh -d 9 -v 64 -a
+	wget --no-check-certificate -qO Core_Install.sh 'https://www.cxthhhhh.com/tech-tools/Network-Reinstall-System-Modify/CoreShell/Core_Install.sh' && bash Core_Install.sh -d 9 -v 64 -a
 fi
 fi
 
 
 if [ $1 = '-Debian_8' ]
 if [ $1 = '-Debian_8' ]
@@ -61,7 +61,7 @@ then
 	echo -e "\033[33m You have chosen to install the latest Debian_8 \033[0m"
 	echo -e "\033[33m You have chosen to install the latest Debian_8 \033[0m"
 	echo -e "\n"
 	echo -e "\n"
 	sleep 2s
 	sleep 2s
-	wget --no-check-certificate -qO koiok.sh 'https://cxthhhhh.com/tech-tools/Network-Reinstall-System-Modify/CoreShell/Core_Install.sh' && bash koiok.sh -d 8 -v 64 -a
+	wget --no-check-certificate -qO Core_Install.sh 'https://www.cxthhhhh.com/tech-tools/Network-Reinstall-System-Modify/CoreShell/Core_Install.sh' && bash Core_Install.sh -d 8 -v 64 -a
 fi
 fi
 
 
 if [ $1 = '-Debian_7' ]
 if [ $1 = '-Debian_7' ]
@@ -69,7 +69,7 @@ then
 	echo -e "\033[33m You have chosen to install the latest Debian_7 \033[0m"
 	echo -e "\033[33m You have chosen to install the latest Debian_7 \033[0m"
 	echo -e "\n"
 	echo -e "\n"
 	sleep 2s
 	sleep 2s
-	wget --no-check-certificate -qO koiok.sh 'https://cxthhhhh.com/tech-tools/Network-Reinstall-System-Modify/CoreShell/Core_Install.sh' && bash koiok.sh -d 7 -v 64 -a
+	wget --no-check-certificate -qO Core_Install.sh 'https://www.cxthhhhh.com/tech-tools/Network-Reinstall-System-Modify/CoreShell/Core_Install.sh' && bash Core_Install.sh -d 7 -v 64 -a
 fi
 fi
 
 
 if [ $1 = '-Ubuntu_18.04' ]
 if [ $1 = '-Ubuntu_18.04' ]
@@ -77,7 +77,7 @@ then
 	echo -e "\033[33m You have chosen to install the latest Ubuntu_18.04 \033[0m"
 	echo -e "\033[33m You have chosen to install the latest Ubuntu_18.04 \033[0m"
 	echo -e "\n"
 	echo -e "\n"
 	sleep 2s
 	sleep 2s
-	wget --no-check-certificate -qO koiok.sh 'https://cxthhhhh.com/tech-tools/Network-Reinstall-System-Modify/CoreShell/Core_Install.sh' && bash koiok.sh -u 18.04 -v 64 -a
+	wget --no-check-certificate -qO Core_Install.sh 'https://www.cxthhhhh.com/tech-tools/Network-Reinstall-System-Modify/CoreShell/Core_Install.sh' && bash Core_Install.sh -u 18.04 -v 64 -a
 fi
 fi
 
 
 if [ $1 = '-Ubuntu_16.04' ]
 if [ $1 = '-Ubuntu_16.04' ]
@@ -85,7 +85,7 @@ then
 	echo -e "\033[33m You have chosen to install the latest Ubuntu_16.04 \033[0m"
 	echo -e "\033[33m You have chosen to install the latest Ubuntu_16.04 \033[0m"
 	echo -e "\n"
 	echo -e "\n"
 	sleep 2s
 	sleep 2s
-	wget --no-check-certificate -qO koiok.sh 'https://cxthhhhh.com/tech-tools/Network-Reinstall-System-Modify/CoreShell/Core_Install.sh' && bash koiok.sh -u 16.04 -v 64 -a
+	wget --no-check-certificate -qO Core_Install.sh 'https://www.cxthhhhh.com/tech-tools/Network-Reinstall-System-Modify/CoreShell/Core_Install.sh' && bash Core_Install.sh -u 16.04 -v 64 -a
 fi
 fi
 
 
 if [ $1 = '-Ubuntu_14.04' ]
 if [ $1 = '-Ubuntu_14.04' ]
@@ -93,7 +93,7 @@ then
 	echo -e "\033[33m You have chosen to install the latest Ubuntu_14.04 \033[0m"
 	echo -e "\033[33m You have chosen to install the latest Ubuntu_14.04 \033[0m"
 	echo -e "\n"
 	echo -e "\n"
 	sleep 2s
 	sleep 2s
-	wget --no-check-certificate -qO koiok.sh 'https://cxthhhhh.com/tech-tools/Network-Reinstall-System-Modify/CoreShell/Core_Install.sh' && bash koiok.sh -u 14.04 -v 64 -a
+	wget --no-check-certificate -qO Core_Install.sh 'https://www.cxthhhhh.com/tech-tools/Network-Reinstall-System-Modify/CoreShell/Core_Install.sh' && bash Core_Install.sh -u 14.04 -v 64 -a
 fi
 fi
 
 
 if [ $1 = '-Windows_Server_2019' ]
 if [ $1 = '-Windows_Server_2019' ]
@@ -101,7 +101,7 @@ then
 	echo -e "\033[33m You have chosen to install the latest Windows_Server_2019 \033[0m"
 	echo -e "\033[33m You have chosen to install the latest Windows_Server_2019 \033[0m"
 	echo -e "\n"
 	echo -e "\n"
 	sleep 2s
 	sleep 2s
-	wget --no-check-certificate -qO koiok.sh 'https://cxthhhhh.com/tech-tools/Network-Reinstall-System-Modify/CoreShell/Core_Install.sh' && bash koiok.sh -dd 'https://opendisk.cxthhhhh.com/OperatingSystem/Windows/Disk_Windows_DD/Disk_Windows_Server_2019_DataCenter_CN.vhd.gz'
+	wget --no-check-certificate -qO Core_Install.sh 'https://www.cxthhhhh.com/tech-tools/Network-Reinstall-System-Modify/CoreShell/Core_Install.sh' && bash Core_Install.sh -dd 'https://odc.mirrors.getcdn.net/Operating-System_VvuH8KEgcrS0HtzN/Windows/Disk_Windows_DD/Disk_Windows_Server_2019_DataCenter_CN.vhd.gz'
 fi
 fi
 
 
 if [ $1 = '-Windows_Server_2016' ]
 if [ $1 = '-Windows_Server_2016' ]
@@ -109,7 +109,7 @@ then
 	echo -e "\033[33m You have chosen to install the latest Windows_Server_2016 \033[0m"
 	echo -e "\033[33m You have chosen to install the latest Windows_Server_2016 \033[0m"
 	echo -e "\n"
 	echo -e "\n"
 	sleep 2s
 	sleep 2s
-	wget --no-check-certificate -qO koiok.sh 'https://cxthhhhh.com/tech-tools/Network-Reinstall-System-Modify/CoreShell/Core_Install.sh' && bash koiok.sh -dd 'https://opendisk.cxthhhhh.com/OperatingSystem/Windows/Disk_Windows_DD/Disk_Windows_Server_2016_DataCenter_CN.vhd.gz'
+	wget --no-check-certificate -qO Core_Install.sh 'https://www.cxthhhhh.com/tech-tools/Network-Reinstall-System-Modify/CoreShell/Core_Install.sh' && bash Core_Install.sh -dd 'https://odc.mirrors.getcdn.net/Operating-System_VvuH8KEgcrS0HtzN/Windows/Disk_Windows_DD/Disk_Windows_Server_2016_DataCenter_CN.vhd.gz'
 fi
 fi
 
 
 if [ $1 = '-Windows_Server_2012R2' ]
 if [ $1 = '-Windows_Server_2012R2' ]
@@ -117,7 +117,7 @@ then
 	echo -e "\033[33m You have chosen to install the latest Windows_Server_2012R2 \033[0m"
 	echo -e "\033[33m You have chosen to install the latest Windows_Server_2012R2 \033[0m"
 	echo -e "\n"
 	echo -e "\n"
 	sleep 2s
 	sleep 2s
-	wget --no-check-certificate -qO koiok.sh 'https://cxthhhhh.com/tech-tools/Network-Reinstall-System-Modify/CoreShell/Core_Install.sh' && bash koiok.sh -dd 'https://opendisk.cxthhhhh.com/OperatingSystem/Windows/Disk_Windows_DD/Disk_Windows_Server_2012R2_DataCenter_CN.vhd.gz'
+	wget --no-check-certificate -qO Core_Install.sh 'https://www.cxthhhhh.com/tech-tools/Network-Reinstall-System-Modify/CoreShell/Core_Install.sh' && bash Core_Install.sh -dd 'https://odc.mirrors.getcdn.net/Operating-System_VvuH8KEgcrS0HtzN/Windows/Disk_Windows_DD/Disk_Windows_Server_2012R2_DataCenter_CN.vhd.gz'
 fi
 fi
 
 
 if [ $1 = '-Windows_Server_2008R2' ]
 if [ $1 = '-Windows_Server_2008R2' ]
@@ -125,7 +125,7 @@ then
 	echo -e "\033[33m You have chosen to install the latest Windows_Server_2008R2 \033[0m"
 	echo -e "\033[33m You have chosen to install the latest Windows_Server_2008R2 \033[0m"
 	echo -e "\n"
 	echo -e "\n"
 	sleep 2s
 	sleep 2s
-	wget --no-check-certificate -qO koiok.sh 'https://cxthhhhh.com/tech-tools/Network-Reinstall-System-Modify/CoreShell/Core_Install.sh' && bash koiok.sh -dd 'https://opendisk.cxthhhhh.com/OperatingSystem/Windows/Disk_Windows_DD/Disk_Windows_Server_2008R2_DataCenter_CN.vhd.gz'
+	wget --no-check-certificate -qO Core_Install.sh 'https://www.cxthhhhh.com/tech-tools/Network-Reinstall-System-Modify/CoreShell/Core_Install.sh' && bash Core_Install.sh -dd 'https://odc.mirrors.getcdn.net/Operating-System_VvuH8KEgcrS0HtzN/Windows/Disk_Windows_DD/Disk_Windows_Server_2008R2_DataCenter_CN.vhd.gz'
 fi
 fi
 
 
 if [ $1 = '-Windows_7_Vienna' ]
 if [ $1 = '-Windows_7_Vienna' ]
@@ -133,7 +133,7 @@ then
 	echo -e "\033[33m You have chosen to install the latest Windows_7_Vienna \033[0m"
 	echo -e "\033[33m You have chosen to install the latest Windows_7_Vienna \033[0m"
 	echo -e "\n"
 	echo -e "\n"
 	sleep 2s
 	sleep 2s
-	wget --no-check-certificate -qO koiok.sh 'https://cxthhhhh.com/tech-tools/Network-Reinstall-System-Modify/CoreShell/Core_Install.sh' && bash koiok.sh -dd 'https://opendisk.cxthhhhh.com/OperatingSystem/Windows/Disk_Windows_DD/Disk_Windows_7_Vienna_Ultimate_CN.vhd.gz'
+	wget --no-check-certificate -qO Core_Install.sh 'https://www.cxthhhhh.com/tech-tools/Network-Reinstall-System-Modify/CoreShell/Core_Install.sh' && bash Core_Install.sh -dd 'https://odc.mirrors.getcdn.net/Operating-System_VvuH8KEgcrS0HtzN/Windows/Disk_Windows_DD/Disk_Windows_7_Vienna_Ultimate_CN.vhd.gz'
 fi
 fi
 
 
 if [ $1 = '-Windows_Server_2003' ]
 if [ $1 = '-Windows_Server_2003' ]
@@ -141,7 +141,7 @@ then
 	echo -e "\033[33m You have chosen to install the latest Windows_Server_2003 \033[0m"
 	echo -e "\033[33m You have chosen to install the latest Windows_Server_2003 \033[0m"
 	echo -e "\n"
 	echo -e "\n"
 	sleep 2s
 	sleep 2s
-	wget --no-check-certificate -qO koiok.sh 'https://cxthhhhh.com/tech-tools/Network-Reinstall-System-Modify/CoreShell/Core_Install.sh' && bash koiok.sh -dd 'https://opendisk.cxthhhhh.com/OperatingSystem/Windows/Disk_Windows_DD/Disk_Windows_Server_2003_DataCenter_CN.vhd.gz'
+	wget --no-check-certificate -qO Core_Install.sh 'https://www.cxthhhhh.com/tech-tools/Network-Reinstall-System-Modify/CoreShell/Core_Install.sh' && bash Core_Install.sh -dd 'https://odc.mirrors.getcdn.net/Operating-System_VvuH8KEgcrS0HtzN/Windows/Disk_Windows_DD/Disk_Windows_Server_2003_DataCenter_CN.vhd.gz'
 fi
 fi
 
 
 if [ $1 = '-CXT_Bare-metal_System_Deployment_Platform' ]
 if [ $1 = '-CXT_Bare-metal_System_Deployment_Platform' ]
@@ -149,7 +149,7 @@ then
 	echo -e "\033[33m You have chosen to install the latest CXT_Bare-metal_System_Deployment_Platform \033[0m"
 	echo -e "\033[33m You have chosen to install the latest CXT_Bare-metal_System_Deployment_Platform \033[0m"
 	echo -e "\n"
 	echo -e "\n"
 	sleep 2s
 	sleep 2s
-	wget --no-check-certificate -qO koiok.sh 'https://cxthhhhh.com/tech-tools/Network-Reinstall-System-Modify/CoreShell/Core_Install.sh' && bash koiok.sh -dd 'https://opendisk.cxthhhhh.com/OperatingSystem/CXT-System/CXT_Bare-metal_System_Deployment_Platform.vhd.gz'
+	wget --no-check-certificate -qO Core_Install.sh 'https://www.cxthhhhh.com/tech-tools/Network-Reinstall-System-Modify/CoreShell/Core_Install.sh' && bash Core_Install.sh -dd 'https://odc.mirrors.getcdn.net/Operating-System_VvuH8KEgcrS0HtzN/CXT-System/CXT_Bare-metal_System_Deployment_Platform.vhd.gz'
 fi
 fi
 
 
 if [ $1 = '-DD' ]
 if [ $1 = '-DD' ]
@@ -157,12 +157,13 @@ then
 	echo -e "\033[33m You have chosen to install the DD package provided by you \033[0m"
 	echo -e "\033[33m You have chosen to install the DD package provided by you \033[0m"
 	echo -e "\n"
 	echo -e "\n"
 	sleep 2s
 	sleep 2s
-	wget --no-check-certificate -qO koiok.sh 'https://cxthhhhh.com/tech-tools/Network-Reinstall-System-Modify/CoreShell/Core_Install.sh' && bash koiok.sh -dd $2
+	wget --no-check-certificate -qO Core_Install.sh 'https://www.cxthhhhh.com/tech-tools/Network-Reinstall-System-Modify/CoreShell/Core_Install.sh' && bash Core_Install.sh -dd $2
 fi
 fi
 
 
 
 
 echo "---------------------------------------------------------------------------------------------------------------------"
 echo "---------------------------------------------------------------------------------------------------------------------"
-echo -e "\033[31m Start Installation \033[0m"
+echo -e "\033[35m Start Installation \033[0m"
+echo -e "\033[32m Start Installation \033[0m"
 echo "---------------------------------------------------------------------------------------------------------------------"
 echo "---------------------------------------------------------------------------------------------------------------------"
 echo -e "\n"
 echo -e "\n"
 exit
 exit