diff --git a/update-hosts/.local/bin/update-hosts b/update-hosts/.local/bin/update-hosts new file mode 100755 index 0000000..287b4de --- /dev/null +++ b/update-hosts/.local/bin/update-hosts @@ -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