#!/bin/sh
wget -O /tmp/hosts http://winhelp2002.mvps.org/hosts.txt && echo "127.0.0.1" $(uname -n) "localhost" > /etc/hosts && tr -d '\015' < /tmp/hosts >> /etc/hosts

if [ $? -ne 0 ]
then
	echo "ERROR! Updating the host failed"
	exit 1
else
	echo "Updated /etc/hosts"
	exit 0
fi
