Andrew's git
/
scripts.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
use wget instead of curl for https
author
Andrew Lorimer
<andrew@lorimer.id.au>
Tue, 11 Dec 2018 06:48:17 +0000
(17:48 +1100)
committer
Andrew Lorimer
<andrew@lorimer.id.au>
Tue, 11 Dec 2018 06:48:17 +0000
(17:48 +1100)
update-blocklist.sh
patch
|
blob
|
history
raw
|
patch
| inline |
side by side
(parent:
e5a2ce3
)
diff --git
a/update-blocklist.sh
b/update-blocklist.sh
index 97c9031d76a5b1f856a7d2e80e421798db147313..2c1207073a8a4f4384609a1a4f4537758ccefad1 100644
(file)
--- a/
update-blocklist.sh
+++ b/
update-blocklist.sh
@@
-5,6
+5,6
@@
set -e
blacklist=https://v.firebog.net/hosts/Easylist.txt
mkdir -p /tmp/dnsmasq-blocklist
-
curl -s --max-filesize 20M -o
/tmp/dnsmasq-blocklist/ads $blacklist
+
wget --cut-dirs=100 -np -nH -O
/tmp/dnsmasq-blocklist/ads $blacklist
sed -i -e 's/^/0.0.0.0 /' /tmp/dnsmasq-blocklist/ads
/etc/init.d/dnsmasq restart