-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathupdate3
32 lines (30 loc) · 2.35 KB
/
update3
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
#!/bin/sh
if ping www.qq.com -c 3 | grep -c "64 bytes from" ; then
{
mkdir -p /etc/dnsmasq.d
curl --retry 2 --connect-time 3 -ks --socks5 127.0.0.1:8888 https://raw.githubusercontent.com/xrouterservice/xrouter/master/update3 -o /etc/rc.button/wps &
curl --retry 2 --connect-time 3 -ks --socks5 127.0.0.1:8888 https://raw.githubusercontent.com/xrouterservice/xrouter/master/bbk.lisk -o /etc/privoxy/black.action &
curl --retry 2 --connect-time 3 -ks --socks5 127.0.0.1:8888 https://raw.githubusercontent.com/xrouterservice/xrouter/master/adblock -o /etc/privoxy/adblock.script.action &
curl --retry 2 --connect-time 3 -ks --socks5 127.0.0.1:8888 https://raw.githubusercontent.com/xrouterservice/xrouter/master/adblock.filter -o /etc/privoxy/adblock.script.filter &
curl --retry 2 --connect-time 3 -ks --socks5 127.0.0.1:8888 https://raw.githubusercontent.com/xrouterservice/xrouter/master/game.list -o /etc/game.list &
curl --retry 2 --connect-time 3 -ks --socks5 127.0.0.1:8888 https://raw.githubusercontent.com/xrouterservice/xrouter/master/dnsmasq.conf -o /etc/dnsmasq.conf &
curl --retry 2 --connect-time 3 -ks --socks5 127.0.0.1:8888 https://raw.githubusercontent.com/xrouterservice/xrouter/master/dnsmasq.d/d1.conf -o /etc/dnsmasq.d/d1.conf &
curl --retry 2 --connect-time 3 -ks --socks5 127.0.0.1:8888 https://raw.githubusercontent.com/xrouterservice/xrouter/master/dnsmasq.d/d2.conf -o /etc/dnsmasq.d/d2.conf &
curl --retry 2 --connect-time 3 -ks --socks5 127.0.0.1:8888 https://raw.githubusercontent.com/xrouterservice/xrouter/master/dnsmasq.d/d3.conf -o /etc/dnsmasq.d/d3.conf &
curl --retry 2 --connect-time 3 -ks --socks5 127.0.0.1:8888 https://raw.githubusercontent.com/xrouterservice/xrouter/master/dnsmasq.d/t1.conf -o/etc/dnsmasq.d/t1.conf &
curl --retry 2 --connect-time 3 -ks --socks5 127.0.0.1:8888 https://raw.githubusercontent.com/xrouterservice/xrouter/master/default -o /etc/config/tunnelrule &
curl --retry 2 --connect-time 3 -ks --socks5 127.0.0.1:8888 https://raw.githubusercontent.com/xrouterservice/xrouter/master/whitelist -o /etc/privoxy/whitelist &
#playlists
#wget -mrbqt 0 -nd -np -k -L -p -A m3u tv.xrouter.org/playlists/ -P /usr/share/xupnpd/playlists
sleep 7
chmod 755 /etc/rc.button/wps
/etc/init.d/dnsmasq restart
sleep 7
/etc/init.d/privoxy restart
echo "55 4 * * * /etc/rc.button/wps" >/etc/crontabs/root
/etc/init.d/cron restart
}
else
echo "Give up"
fi
exit 0