容器化的无污染DNS服务
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
657 B

#!/bin/sh
ASSET_DIR="/etc/cleardns/asset"
[ -f "$ASSET_DIR/no-update" ] && exit
TEMP_DIR="$ASSET_DIR/temp"
rm -rf "$TEMP_DIR" && mkdir -p "$TEMP_DIR"
wget -P "$TEMP_DIR" https://res.dnomd343.top/Share/gfwlist/gfwlist.txt
wget -P "$TEMP_DIR" https://res.dnomd343.top/Share/chinalist/chinalist.txt
wget -P "$TEMP_DIR" https://res.dnomd343.top/Share/chinalist/china_ip.txt
[ -s "$TEMP_DIR/gfwlist.txt" ] && mv -f "$TEMP_DIR/gfwlist.txt" "$ASSET_DIR"
[ -s "$TEMP_DIR/chinalist.txt" ] && mv -f "$TEMP_DIR/chinalist.txt" "$ASSET_DIR"
[ -s "$TEMP_DIR/china_ip.txt" ] && mv -f "$TEMP_DIR/china_ip.txt" "$ASSET_DIR"
rm -rf "$TEMP_DIR"
pgrep overture | xargs kill