-
Notifications
You must be signed in to change notification settings - Fork 108
/
am_i_using_this_driver.sh
executable file
·104 lines (95 loc) · 2.19 KB
/
am_i_using_this_driver.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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
#!/bin/bash
if [ ! -f "functions.sh" ]; then
echo "Required file \"functions.sh\" not found!"
exit
fi
. "$(readlink -f functions.sh)"
runningNew ()
{
echo -e "${green}[*] You are running the new ${1}${restore}"
}
runningStock ()
{
echo -e "${yellow}[*] Not running the new $1 (running stock driver)${restore}"
}
runningNone ()
{
echo -e "${red}[*] Not running any ${1}${restore}"
}
if runningAnyRtlwifi; then
if runningOurRtlwifi; then
runningNew "rtlwifi"
else
runningStock "rtlwifi"
fi
else
runningNone "rtlwifi"
fi
if pciDetectsRtl8188ce || pciDetectsRtl8192ce; then
if runningAnyRtl8192c_common; then
if runningOurRtl8192c_common; then
runningNew "rtl8192c_common"
else
runningStock "rtl8192c_common"
fi
else
runningNone "rtl8192c_common"
fi
if runningAnyRtl8192ce; then
if runningOurRtl8192ce; then
runningNew "rtl8192ce"
else
runningStock "rtl8192ce"
fi
else
runningNone "rtl8192ce"
fi
elif runningAnyRtl8188ee; then
if runningOurRtl8188ee; then
runningNew "rtl8188ee"
else
runningStock "rtl8188ee"
fi
elif runningAnyRtl8192cu; then
if runningOurRtl8192cu; then
runningNew "rtl8192cu"
else
runningStock "rtl8192cu"
fi
elif runningAnyRtl8192de; then
if runningOurRtl8192de; then
runningNew "rtl8192de"
else
runningStock "rtl8192de"
fi
elif runningAnyRtl8192ee; then
if runningOurRtl8192ee; then
runningNew "rtl8192ee"
else
runningStock "rtl8192ee"
fi
elif runningAnyRtl8192se; then
if runningOurRtl8192se; then
runningNew "rtl8192se"
else
runningStock "rtl8192se"
fi
elif runningAnyRtl8723ae; then
if runningOurRtl8723ae; then
runningNew "rtl8723ae"
else
runningStock "rtl8723ae"
fi
elif runningAnyRtl8723be; then
if runningOurRtl8723be; then
runningNew "rtl8723be"
else
runningStock "rtl8723be"
fi
elif runningAnyRtl8821ae; then
if runningOurRtl8821ae; then
runningNew "rtl8821ae"
else
runningStock "rtl8821ae"
fi
fi