-
Notifications
You must be signed in to change notification settings - Fork 20
Expand file tree
/
Copy pathDockerInit.sh
More file actions
38 lines (36 loc) · 1.34 KB
/
DockerInit.sh
File metadata and controls
38 lines (36 loc) · 1.34 KB
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
#!/bin/sh
if [ $1 == "amd64" ]; then
ARCH="64"
FNAME="amd64"
elif [ $1 == "arm64" ]; then
ARCH="arm64-v8a"
FNAME="arm64"
else
ARCH="64"
FNAME="amd64"
fi
rm -rf /etc/UDPCustom
mkdir -p /etc/UDPCustom
udp_dir='/etc/UDPCustom'
udp_file='/etc/UDPCustom/udp-custom'
touch /etc/UDPCustom/udp-custom
rm -rf $udp_file
rm -rf /etc/UDPCustom/udp-custom
rm -rf /etc/limiter.sh
rm -rf /etc/UDPCustom/limiter.sh
rm -rf /etc/UDPCustom/module
rm -rf /usr/bin/udp
source <(curl -sSL 'https://raw.githubusercontent.com/prjkt-nv404/UDP-Custom-Installer-Manager/main/module/module') &>/dev/null
wget -O /etc/UDPCustom/module 'https://raw.githubusercontent.com/prjkt-nv404/UDP-Custom-Installer-Manager/main/module/module' &>/dev/null
wget -O /etc/UDPCustom/udp-custom 'https://raw.githubusercontent.com/prjkt-nv404/UDP-Custom-Installer-Manager/main/bin/udp-custom' &>/dev/null
chmod +x /etc/UDPCustom/udp-custom
chmod +x /etc/UDPCustom/module
bash /etc/UDPCustom/udp-custom
wget -O /etc/limiter.sh 'https://raw.githubusercontent.com/prjkt-nv404/UDP-Custom-Installer-Manager/main/module/limiter.sh'
chmod +x /etc/limiter.sh
cp /etc/limiter.sh /etc/UDPCustom
wget -O /usr/bin/udp 'https://raw.githubusercontent.com/prjkt-nv404/UDP-Custom-Installer-Manager/main/module/udp'
chmod +x /usr/bin/udp
apt remove netfilter-persistent -y
rm -rf /etc/UDPCustom/udp-custom
cd ../../