mirror of https://github.com/dnomd343/ClearDNS
dnomd343
4 years ago
4 changed files with 16 additions and 9 deletions
@ -1,8 +1,14 @@ |
|||||
rm -f /etc/overture/chinalist.txt |
OVERTURE_DIR="/etc/overture" |
||||
rm -f /etc/overture/gfwlist.txt |
TEMP_DIR="$OVERTURE_DIR/list/temp" |
||||
rm -f /etc/overture/china_ip_list.txt |
[ -f "$OVERTURE_DIR/list/no_auto_update" ] && exit |
||||
wget -P /etc/overture https://res.343.re/Share/chinalist/chinalist.txt |
rm -rf $TEMP_DIR |
||||
wget -P /etc/overture https://res.343.re/Share/gfwlist/gfwlist.txt |
mkdir -p $TEMP_DIR |
||||
wget -P /etc/overture https://raw.fastgit.org/17mon/china_ip_list/master/china_ip_list.txt |
wget -P $TEMP_DIR https://res.343.re/Share/chinalist/chinalist.txt |
||||
|
wget -P $TEMP_DIR https://res.343.re/Share/gfwlist/gfwlist.txt |
||||
|
wget -P $TEMP_DIR https://raw.fastgit.org/17mon/china_ip_list/master/china_ip_list.txt |
||||
|
[ -s "$TEMP_DIR/chinalist.txt" ] && mv -f $TEMP_DIR/chinalist.txt $OVERTURE_DIR/list/ |
||||
|
[ -s "$TEMP_DIR/gfwlist.txt" ] && mv -f $TEMP_DIR/gfwlist.txt $OVERTURE_DIR/list/ |
||||
|
[ -s "$TEMP_DIR/china_ip_list.txt" ] && mv -f $TEMP_DIR/china_ip_list.txt $OVERTURE_DIR/list/ |
||||
|
rm -rf $TEMP_DIR |
||||
ps -ef | grep overture | grep -v grep | grep -v sh | awk '{print $1}' | xargs kill -9 |
ps -ef | grep overture | grep -v grep | grep -v sh | awk '{print $1}' | xargs kill -9 |
||||
overture -c /etc/overture/config.yml > /dev/null 2>&1 & |
overture -c /etc/overture/config.yml > /dev/null 2>&1 & |
||||
|
Loading…
Reference in new issue