aboutsummaryrefslogtreecommitdiff
path: root/system/update-hosts
diff options
context:
space:
mode:
authorYaroslav de la Peña Smirnov <yps@yaroslavps.com>2023-02-06 03:53:51 +0300
committerYaroslav de la Peña Smirnov <yps@yaroslavps.com>2023-02-06 03:53:51 +0300
commitb943ef609ef9aeba96599770f730d27b529146a6 (patch)
tree4cea10e6576ed1b8a47ddead13301aa6e4f42ae4 /system/update-hosts
parentf0cc6eec402a0deceafc0e0663d77008a969d7aa (diff)
downloadswayrice-b943ef609ef9aeba96599770f730d27b529146a6.tar.gz
swayrice-b943ef609ef9aeba96599770f730d27b529146a6.zip
cleanup: remove old files, improve install
Clean up old files and improve installation of system-wide configuration.
Diffstat (limited to 'system/update-hosts')
-rwxr-xr-xsystem/update-hosts9
1 files changed, 0 insertions, 9 deletions
diff --git a/system/update-hosts b/system/update-hosts
deleted file mode 100755
index 6725ce9..0000000
--- a/system/update-hosts
+++ /dev/null
@@ -1,9 +0,0 @@
-#!/bin/sh
-
-# Check several times before giving up, useful when just waking up from sleep
-# since internet is usually not available right away
-wget -q --tries=3 --timeout=20 --spider 1.1.1.1 > /dev/null || exit
-
-curl "http://sbc.io/hosts/hosts" 2>/dev/null | \
- grep -vE '^(\s*)[1-9a-f:]{1,4}.*' | \
- cat /etc/hosts.head - > /etc/hosts