Skip to content

Instantly share code, notes, and snippets.

@gary
Created January 23, 2010 02:27
Show Gist options
  • Save gary/284384 to your computer and use it in GitHub Desktop.
Save gary/284384 to your computer and use it in GitHub Desktop.
#!/bin/sh
wget -O - http://someonewhocares.org/hosts/hosts > /tmp/hosts
cat /usr/local/etc/hosts >> /tmp/hosts
cp -av /etc/hosts /etc/hosts.orig
cp -av /tmp/hosts /etc/hosts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment