-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathx2.sh
59 lines (53 loc) · 1.3 KB
/
x2.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
#!/usr/bin/bash
set -euo pipefail
# Color
CYAN='\e[36;1m'
GREEN='\e[32m'
RESET='\e[0m'
YELLOW='\e[33m'
# Variables
t1='
----
Installing wifi drivers from
https://github.com/RinCat/RTL88x2BU-Linux-Driver
---
'
# Functions
b1() {
clear
echo -e "${CYAN} ${t1} ${RESET}"
}
b2() {
echo -e "${GREEN} sudo apt install linux-headers-$(uname -r) ${RESET}"
echo -e "${GREEN} git clone https://github.com/RinCat/RTL88x2BU-Linux-Driver ${RESET}"
echo -e "${GREEN} make clean ${RESET}"
echo -e "${GREEN} make ${RESET}"
echo -e "${GREEN} sudo make install ${RESET}"
echo -e ""
echo -e "Executing..."
}
e1() {
echo ""
echo -e "${YELLOW}sudo apt install linux-headers-$(uname -r) ${RESET}"
sudo apt install linux-headers-$(uname -r)
echo -e "${GREEN}DONE.... ${RESET}"
echo ""
echo -e "${YELLOW}git clone https://github.com/RinCat/RTL88x2BU-Linux-Driver ${RESET}"
git clone https://github.com/RinCat/RTL88x2BU-Linux-Driver
echo -e "${GREEN}DONE.... ${RESET}"
echo ""
echo -e "${YELLOW}make clean ${RESET}"
cd RTL88x2BU-Linux-Driver
make clean
make
echo -e "${GREEN}DONE.... ${RESET}"
echo ""
echo -e "${YELLOW}sudo make install ${RESET}"
sudo make install
echo -e "${GREEN}DONE.... ${RESET}"
echo ""
}
# Execution
b1
b2
e1