-
Notifications
You must be signed in to change notification settings - Fork 208
/
miwifi.sh
executable file
·81 lines (73 loc) · 2.16 KB
/
miwifi.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
#!/bin/sh
cd /tmp
echo "*********************************************************"
echo "* SS插件安装器 *"
echo "* *"
echo "* 安装前请关闭小米路由器自带VPN功能 *"
echo "* *"
echo "* 支持路由型号:mini | r1d | r2d | r3 *"
echo "* *"
echo "* *"
echo "*********************************************************"
echo " "
echo "请选择需要的操作(按下对应数字后回车确认)"
echo "1:安装r1d&r2d版SS插件"
echo "2:卸载r1d&r2d版SS插件"
echo "3:安装mini版ss插件"
echo "4:卸载mini版ss插件"
echo "5:安装r3版ss插件"
echo "6:卸载r3版ss插件"
echo "0:退出"
read num
if [ "${num}" == "1" ]
then
cd /tmp
rm -rf *.sh
curl https://raw.githubusercontent.com/blademainer/miwifi-ss/master/r2d/r2d_ss.sh -o r2d_ss.sh
chmod -R 777 r2d_ss.sh
./r2d_ss.sh
fi
if [ "${num}" == "2" ]
then
cd /tmp
rm -rf *.sh
curl https://raw.githubusercontent.com/blademainer/miwifi-ss/master/r2d/r2d_uninstall.sh -o r2d_uninstall.sh
chmod -R 777 r2d_uninstall.sh
./r2d_uninstall.sh
fi
if [ "${num}" == "3" ]
then
cd /tmp
rm -rf *.sh
curl https://raw.githubusercontent.com/blademainer/miwifi-ss/master/mini/mini_ss.sh -o mini_ss.sh
chmod -R 777 mini_ss.sh
./mini_ss.sh
fi
if [ "${num}" == "4" ]
then
cd /tmp
rm -rf *.sh
curl https://raw.githubusercontent.com/blademainer/miwifi-ss/master/mini/mini_uninstall.sh -o mini_uninstall.sh
chmod -R 777 mini_uninstall.sh
sh mini_uninstall.sh
fi
if [ "${num}" == "5" ]
then
cd /tmp
rm -rf *.sh
curl https://raw.githubusercontent.com/blademainer/miwifi-ss/master/r3/r3_ss.sh -o r3_ss.sh
chmod -R 777 r3_ss.sh
./r3_ss.sh
fi
if [ "${num}" == "6" ]
then
cd /tmp
rm -rf *.sh
curl https://raw.githubusercontent.com/blademainer/miwifi-ss/master/r3/r3_uninstall.sh -o r3_uninstall.sh
chmod -R 777 r3_uninstall.sh
sh r3_uninstall.sh
fi
if [ "${num}" == "0" ]
then
exit
fi