cp /etc/hosts /etc/hosts.base
#!/bin/bash URL=http://winhelp2002.mvps.org/hosts.txt TEMP=/etc/hotst.tmp BASE=/etc/hosts.base HOSTS=/etc/hosts rm -f $TEMP 2> /dev/null curl $URL | grep ^0.0.0.0 | cut -d "#" -f 1 | grep -v localhosts >> $TEMP && rm -f $HOSTS && cat $BASE $TEMP | sed -e "s/^\s*//g" -e "s/\s*$//g" -e "/^\s*$/d" -e "/^$/d" >> $HOSTS rm -f $TEMP 2> /dev/null
chown root:root update-hosts chmod 770 update-hosts
devel-su ./update-hosts
rm -f /etc/hosts mv /etc/hosts.base /etc/hosts