Skip to content

Instantly share code, notes, and snippets.

@wallace57
Forked from joeyblake/hostfix
Created June 24, 2013 06:29
Show Gist options
  • Save wallace57/5848087 to your computer and use it in GitHub Desktop.
Save wallace57/5848087 to your computer and use it in GitHub Desktop.
#!/bin/bash
# copy this file to /usr/sbin
# if you have other hosts entries that you would not like to lose, make sure they get added to the hosts.mamp.bak file
cat /etc/hosts.mamp.bak > /etc/hosts
echo 'clean!'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment