if [ -n "$(find /etc/hosts -mtime +7)" ]; then # wait for internet access while true; do nc -zw1 si3t.ch 443 && break || sleep 60 done curl -o /etc/hosts --compressed https://si3t.ch/pub/evils/hosts.txt # or #ftp -o- https://si3t.ch/pub/evils/hosts.txt.gz |gzcat > /etc/hosts fi