Add 'update-host'

This commit is contained in:
M.R. Firmansyah 2024-09-13 01:13:20 +07:00
parent 9ddc0b26b9
commit 0a75acfc79

View 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