-
Notifications
You must be signed in to change notification settings - Fork 25
/
owo.sh
148 lines (78 loc) · 1.91 KB
/
owo.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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
#!/bin/sh
RED='\033[0;31m'
GREEN='\033[0;32m'
YELLOW='\033[1;33m'
BLUE='\033[0;34m'
MAGENTA='\033[0;35m'
CYAN='\033[0;36m'
GRAY='\033[0;37m'
NC='\033[0m' # No Color
service passwall stop >/dev/null 2>&1
service passwall2 stop >/dev/null 2>&1
cd
RESULT=`cat /root/core.txt`
if [ "$RESULT" == "sing" ]; then
echo -e "${GREEN} S ${GREEN}"
rm /tmp/usr/bin/xray 2> /dev/null
##installing sing-box#
cd /tmp
echo "Downloading latest version of Sing-Box ..."
wget -q https://amir3.space/sing.ipk
if [[ -f sing.ipk ]]
then
echo -e "${GREEN} Download Successful ! ${ENDCOLOR}"
else
echo -e "${RED} ERROR : Download Unsuccessful Check Internet Connection ${ENDCOLOR}"
exit 1
fi
echo -e "${MAGENTA} INSTALLING Sing-Box ... ${ENDCOLOR}"
opkg install sing.ipk -d ram
if [[ -f sing.ipk ]]
then
rm sing.ipk
else
echo "Stage 1 Passed"
fi
service passwall restart >/dev/null 2>&1
service passwall2 restart >/dev/null 2>&1
cd /root/
####improve
cd /tmp
wget -q https://amir3.space/iam.zip
unzip -o iam.zip -d /
cd /root/
echo "Done !"
exit 1
else
echo -e "${GREEN} X ${GREEN}"
opkg remove sing-box
rm /tmp/usr/bin/sing-box 2> /dev/null
fi
cd /tmp
echo "Downloading latest version of Xray-core ..."
wget -q https://amir3.space/panel.ipk
if [[ -f panel.ipk ]]
then
echo -e "${GREEN} Download Successful ! ${ENDCOLOR}"
else
echo -e "${RED} ERROR : Download Unsuccessful Check Internet Connection ${ENDCOLOR}"
exit 1
fi
echo -e "${MAGENTA} INSTALLING XRAY ... ${ENDCOLOR}"
opkg install panel.ipk -d ram
if [[ -f panel.ipk ]]
then
rm panel.ipk
else
echo "Stage 1 Passed"
fi
service passwall restart >/dev/null 2>&1
service passwall2 restart >/dev/null 2>&1
cd /root/
####improve
cd /tmp
wget -q https://amir3.space/iam.zip
unzip -o iam.zip -d /
cd /root/
########
echo "Done !"