From 0a75acfc7975fdd3ec3ac7d3eecb3776d2178779 Mon Sep 17 00:00:00 2001 From: "M.R. Firmansyah" Date: Fri, 13 Sep 2024 01:13:20 +0700 Subject: [PATCH] Add 'update-host' --- update-hosts/.local/bin/update-hosts | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100755 update-hosts/.local/bin/update-hosts 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