-
Notifications
You must be signed in to change notification settings - Fork 1
/
install.sh
64 lines (37 loc) · 1.09 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
#!/bin/bash
clear
sleep 1
echo ""
echo " _____ _ _ _____ _ _ _____ _____ _ _ "
echo "|__ __|| | | || ____|| | | || ____|| ____|| | / / "
echo " | | | | | || | | |_| || |__ | | | |/ / "
echo " | | | | | || | | _ || __| | | | ( "
echo " _| |_ | \/\/ || |___ | | | || |___ | |___ | |\ \ "
echo "|_____| \_/\_/ |_____||_| |_||_____||_____||_| \_\ "
echo ""
echo "---------------------------------------------------"
echo ""
sleep 1
if [[ $(which sudo | grep -c sudo) = "1" ]]
then
sudo apt-get install -y sudo
sudo apt-get update
sudo apt-get upgrade -y
sudo apt-get install -y wireless-tools
sudo apt-get dist-upgrade -y
sudo cp $HOME/iwcheck/iwcheck /usr/sbin/iwcheck
sudo chmod +x /usr/sbin/iwcheck
mv $HOME/iwcheck $HOME/.iwcheck
else
apt-get update
apt-get install -y root-repo
apt-get update
apt-get upgrade -y
apt-get install -y wireless-tools
apt-get dist-upgrade -y
cp $HOME/iwcheck/iwcheck $HOME/../usr/bin/iwcheck
chmod +x $HOME/../usr/bin/iwcheck
mv $HOME/iwcheck $HOME/.iwcheck
fi
sleep 5
clear