-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathinstall.sh
executable file
·86 lines (81 loc) · 1.97 KB
/
install.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
#!/bin/bash
white='\033[0;37m'
NC='\033[0m'
clear
printf '\033]2; INSTALLER\a'
echo -e "Press \e[1;33many key\e[0m to install the script..."
read -n 1
clear
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
if [[ "$DIR" != "/root/bootmiester" ]]
then
echo -e "I will try to install it for you..."
sleep 4
if [[ -d /root/bootmiester ]]
then
rm -r /root/bootmiester
fi
mkdir /root/bootmiester
cp -r "$DIR"/* /root/bootmiester
chmod +x /root/bootmiester/install.sh
#gnome-terminal -- bash -c "sudo /root/bootmiester/install.sh; exec bash"
fi
echo -e "Installing Bootmiester..."
sleep 1
echo -e "Fixing permissions..."
sleep 2
chmod +x /root/bootmiester/bootmiester.sh
clear
echo -e "Copying script to /bin/bootmiester"
cd /root/bootmiester
cp /root/bootmiester/bootmiester.sh /bin/bootmiester
clear
while true
do
clear
echo -e "Are you \e[1;33mu\e[0mpdating or \e[1;33mi\e[0mnstalling the script?(\e[1;33mu\e[0m/\e[1;33mi\e[0m): "
echo -e "Only use 'i' for the first time."
read UORI
if [[ "$UORI" = "u" ]]
then
clear
echo -e "This feature is currently under construction.."
sleep 3
elif [[ "$UORI" = "i" ]]
then
clear
BASHCHECK=$(cat ~/.bashrc | grep "/bin/bootmiester")
if [[ "$BASHCHECK" != "" ]]
then
echo -e "I SAID USE i ONLY ONE TIME..........."
sleep 3
break
fi
echo -e "Adding Bootmiester to PATH so you can access it from anywhere"
sleep 1
export PATH=/bin/bootmiester:$PATH
sleep 1
echo "export PATH=/bin/bootmiester:$PATH" >> ~/.bashrc
sleep 1
clear
break
fi
done
clear
sleep 1
echo -e "${white}Installing Dependencies..."
sleep 1
echo -e "Installing xterm...${NC}"
sleep 1
sudo apt install -y xterm
clear
echo -e "${white}Installing 'lolcat' & 'aircrack-ng'..."
sleep 1
xterm +hold -e "sudo apt install -y lolcat"
xterm +hold -e "sudo apt install -y aircrack-ng"
echo -e "Done."
sudo cp -r /usr/games/lolcat /bin/
sleep 1
echo -e "Installation is finished. Type 'sudo bootmiester' to launch the script after we exit."
sleep 2
exit