-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathkernel.sh
88 lines (79 loc) · 3.23 KB
/
kernel.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
#!/bin/sh
if [[ $EUID -ne 0 ]]; then
clear
echo "Error: This script must be run as root!" 1>&2
exit 1
fi
if [ -f "/usr/bin/yum" ] && [ -d "/etc/yum.repos.d" ]; then
yum update -y
yum install -y wget curl
elif [ -f "/usr/bin/apt-get" ] && [ -f "/usr/bin/dpkg" ]; then
apt-get update --fix-missing
apt install -y curl wget
fi
function CopyRight() {
clear
echo "########################################################"
echo "# #"
echo "# Auto Reinstall Script #"
echo "# #"
echo "# Author: AkumaVM #"
echo "# Last Modified: 18-12-2024 #"
echo "# #"
echo "# Supported by bin456789 #"
echo "# #"
echo "########################################################"
echo -e "\n"
}
function Start() {
CopyRight
curl -O https://raw.githubusercontent.com/AKUMAVM/launch/main/mark.sh || wget -O mark.sh $_
echo -e "\nPlease select an OS:"
echo " 1) Latest Debian"
echo " 2) Latest Ubuntu"
echo " 3) Latest Almalinux"
echo " 4) Latest Alpine Linux"
echo " 5) Latest CentOS"
echo " 6) Kali Linux"
echo " 7) Windows 10 Pro"
echo " 8) Windows 11 Pro"
echo " 9) Windows Server 2012 R2 DC"
echo " 10) Windows Server 2016 DC"
echo " 11) Windows Server 2019 DC"
echo " 12) Windows Server 2022 DC"
echo " 13) Windows Server 2025 DC"
echo " 14) Netboot"
echo " 99) Custom DD image"
echo " 0)Exit"
echo -ne "\nYour option: "
read N
case $N in
1) bash mark.sh debian --password 123@@@ ;;
2) bash mark.sh ubuntu --password 123@@@ ;;
3) bash mark.sh alma --password 123@@@ ;;
4) bash mark.sh alpine --password 123@@@ ;;
5) bash mark.sh centos --password 123@@@ ;;
6) bash mark.sh kali --password 123@@@ ;;
7) bash mark.sh windows --image-name='Windows 10 Pro' --lang=en-us --password 123@@@ ;;
8) bash mark.sh windows --image-name='Windows 11 Pro' --lang=en-us --password 123@@@ ;;
9) bash mark.sh windows --image-name='Windows Server 2012 R2 SERVERDATACENTER' --lang=en-us --password 123@@@ --allow-ping ;;
10) bash mark.sh windows --image-name='Windows Server 2016 SERVERDATACENTER' --lang=en-us --password 123@@@ --allow-ping ;;
11) bash mark.sh windows --image-name='Windows Server 2019 SERVERDATACENTER' --lang=en-us --password 123@@@ --allow-ping ;;
12) bash mark.sh windows --image-name='Windows Server 2022 SERVERDATACENTER' --lang=en-us --password 123@@@ --allow-ping ;;
13) bash mark.sh windows --image-name='Windows Server 2025 SERVERDATACENTER' --lang=en-us --password 123@@@ --allow-ping ;;
14) bash mark.sh netboot.xyz ;;
99)
echo -e "\n"
read -r -p "Custom DD image URL: " imgURL
echo -e "\n"
read -r -p "Are you sure start reinstall? [y/N]: " input
case $input in
[yY][eE][sS]|[yY]) bash mark.sh dd --img $imgURL ;;
*) clear; echo "Canceled by user!"; exit 1;;
esac
;;
0) exit 0;;
*) echo "Wrong input!"; exit 1;;
esac
}
Start