Add 'update-host'
This commit is contained in:
parent
9ddc0b26b9
commit
0a75acfc79
1 changed files with 7 additions and 0 deletions
7
update-hosts/.local/bin/update-hosts
Executable file
7
update-hosts/.local/bin/update-hosts
Executable file
|
@ -0,0 +1,7 @@
|
||||||
|
#!/bin/sh
|
||||||
|
sed -i '/# update-hosts/,$d' /etc/hosts
|
||||||
|
echo "# update-hosts" >> /etc/hosts
|
||||||
|
aria2c -d /tmp -s16 -x16 'https://raw.githubusercontent.com/r-a-y/mobile-hosts/master/AdguardDNS.txt'
|
||||||
|
aria2c -d /tmp -s16 -x16 'https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn/hosts'
|
||||||
|
cat /tmp/AdguardDNS.txt >> /etc/hosts
|
||||||
|
cat /tmp/hosts >> /etc/hosts
|
Loading…
Reference in a new issue