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