From a85685405563c039f4ae5cd0ae8d1d3faeb17cb3 Mon Sep 17 00:00:00 2001 From: Dnomd343 Date: Mon, 26 Sep 2022 16:07:58 +0800 Subject: [PATCH] update: remove legacy init script --- load.sh | 42 ------------------------------------------ 1 file changed, 42 deletions(-) delete mode 100755 load.sh diff --git a/load.sh b/load.sh deleted file mode 100755 index 303c88b..0000000 --- a/load.sh +++ /dev/null @@ -1,42 +0,0 @@ -#!/bin/sh -mkdir -p /etc/cleardns/asset/ -mkdir -p /etc/cleardns/AdGuardHome/ - -cleardns_dir="/etc/cleardns" -overture_dir="/etc/overture" -cd $overture_dir && tar xf asset.tar.gz -[ ! -f "$cleardns_dir/asset/gfwlist.txt" ] && cp "$overture_dir/gfwlist.txt" "$cleardns_dir/asset/gfwlist.txt" -[ ! -f "$cleardns_dir/asset/chinalist.txt" ] && cp "$overture_dir/chinalist.txt" "$cleardns_dir/asset/chinalist.txt" -[ ! -f "$cleardns_dir/asset/china-ip.txt" ] && cp "$overture_dir/china-ip.txt" "$cleardns_dir/asset/china-ip.txt" - -upstream_file="/etc/cleardns/upstream.json" -if [ ! -f "$upstream_file" ]; then -cat > $upstream_file << EOF -{ - "domestic": { - "bootstrap": "223.5.5.5", - "primary": [ - "tls://dns.alidns.com", - "https://doh.pub/dns-query" - ], - "fallback": [ - "223.5.5.5", - "119.29.29.29" - ] - }, - "foreign": { - "bootstrap": "8.8.8.8", - "primary": [ - "tls://dns.google", - "https://dns.cloudflare.com/dns-query" - ], - "fallback": [ - "1.1.1.1", - "8.8.8.8" - ] - } -} -EOF -fi - -/etc/overture/update.sh&