forked from MeowLove/Network-Reinstall-System-Modify
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathNetwork-Reinstall-System-Modify.sh
169 lines (145 loc) · 8.11 KB
/
Network-Reinstall-System-Modify.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
#!/bin/bash
## License: GPL
## This is the magically modified version of the one-click reload script.
## It can reinstall CentOS, Debian, Ubuntu and other Linux systems (continuously added) over the network in one click.
## It can reinstall Windwos 2003, 7, 2008R2, 2012R2, 2016, 2019 and other Windows systems (continuously added) via the network in one click.
## Support GRUB or GRUB2 for installing a clean minimal system.
## Technical support is provided by the CXT (CXTHHHHH.com). (based on the original version of Vicer)
## Magic Modify version author:
## Default root password: cxthhhhh.com
## WebSite: https://www.cxthhhhh.com
## Written By CXT (CXTHHHHH.com)
## Original version author:
## Blog: https://moeclub.org
## Written By Vicer (MoeClub.org)
echo -e "\n\n\n"
clear
echo -e "\n"
echo "---------------------------------------------------------------------------------------------------------------------"
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 System requirements: Any Linux system with GRUB or GRUB2, recommended CentOS7/Debian9/Ubuntu18.04 \033[0m"
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 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 -e "\n"
sleep 5s
if [ $1 = '-CentOS_7' ]
then
echo -e "\033[33m You have chosen to install the latest CentOS_7 \033[0m"
echo -e "\n"
sleep 2s
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
if [ $1 = '-CentOS_6' ]
then
echo -e "\033[33m You have chosen to install the latest CentOS_6 \033[0m"
echo -e "\n"
sleep 2s
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
if [ $1 = '-Debian_9' ]
then
echo -e "\033[33m You have chosen to install the latest Debian_9 \033[0m"
echo -e "\n"
sleep 2s
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
if [ $1 = '-Debian_8' ]
then
echo -e "\033[33m You have chosen to install the latest Debian_8 \033[0m"
echo -e "\n"
sleep 2s
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
if [ $1 = '-Debian_7' ]
then
echo -e "\033[33m You have chosen to install the latest Debian_7 \033[0m"
echo -e "\n"
sleep 2s
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
if [ $1 = '-Ubuntu_18.04' ]
then
echo -e "\033[33m You have chosen to install the latest Ubuntu_18.04 \033[0m"
echo -e "\n"
sleep 2s
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
if [ $1 = '-Ubuntu_16.04' ]
then
echo -e "\033[33m You have chosen to install the latest Ubuntu_16.04 \033[0m"
echo -e "\n"
sleep 2s
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
if [ $1 = '-Ubuntu_14.04' ]
then
echo -e "\033[33m You have chosen to install the latest Ubuntu_14.04 \033[0m"
echo -e "\n"
sleep 2s
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
if [ $1 = '-Windows_Server_2019' ]
then
echo -e "\033[33m You have chosen to install the latest Windows_Server_2019 \033[0m"
echo -e "\n"
sleep 2s
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
if [ $1 = '-Windows_Server_2016' ]
then
echo -e "\033[33m You have chosen to install the latest Windows_Server_2016 \033[0m"
echo -e "\n"
sleep 2s
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
if [ $1 = '-Windows_Server_2012R2' ]
then
echo -e "\033[33m You have chosen to install the latest Windows_Server_2012R2 \033[0m"
echo -e "\n"
sleep 2s
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
if [ $1 = '-Windows_Server_2008R2' ]
then
echo -e "\033[33m You have chosen to install the latest Windows_Server_2008R2 \033[0m"
echo -e "\n"
sleep 2s
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
if [ $1 = '-Windows_7_Vienna' ]
then
echo -e "\033[33m You have chosen to install the latest Windows_7_Vienna \033[0m"
echo -e "\n"
sleep 2s
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
if [ $1 = '-Windows_Server_2003' ]
then
echo -e "\033[33m You have chosen to install the latest Windows_Server_2003 \033[0m"
echo -e "\n"
sleep 2s
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
if [ $1 = '-CXT_Bare-metal_System_Deployment_Platform' ]
then
echo -e "\033[33m You have chosen to install the latest CXT_Bare-metal_System_Deployment_Platform \033[0m"
echo -e "\n"
sleep 2s
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
if [ $1 = '-DD' ]
then
echo -e "\033[33m You have chosen to install the DD package provided by you \033[0m"
echo -e "\n"
sleep 2s
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
echo "---------------------------------------------------------------------------------------------------------------------"
echo -e "\033[35m Start Installation \033[0m"
echo -e "\033[32m Start Installation \033[0m"
echo "---------------------------------------------------------------------------------------------------------------------"
echo -e "\n"
exit