-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathamirhossein.sh
42 lines (29 loc) · 759 Bytes
/
amirhossein.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
#!/bin/bash
RED='\033[0;31m'
GREEN='\033[0;32m'
YELLOW='\033[1;33m'
BLUE='\033[0;34m'
MAGENTA='\033[0;35m'
CYAN='\033[0;36m'
GRAY='\033[0;37m'
NC='\033[0m' # No Color
Check if user is root
if [[ $EUID -ne 0 ]]; then
echo "This script must be run as root"
sleep .5
sudo "$0" "$@"
exit 1
fi
echo "Running as root..."
sleep .5
clear
cd /root/
wget -q https://raw.githubusercontent.com/amirhosseinchoghaei/mi4agigabit/main/owo.sh
chmod 777 owo.sh
cd /etc/init.d/
wget -q https://raw.githubusercontent.com/amirhosseinchoghaei/mi4agigabit/main/amir
chmod +x /etc/init.d/amir
/etc/init.d/amir enable
echo -e "${GREEN} Finished ... ${ENDCOLOR}"
/etc/init.d/amir start
echo -e "${GREEN} Made With Love By : AmirHossein Choghaei ${ENDCOLOR}"