Skip to content

Instantly share code, notes, and snippets.

@JosephShenton
Created July 14, 2018 08:29
Show Gist options
  • Save JosephShenton/d49523f8e4332e891465a220b21a6dbd to your computer and use it in GitHub Desktop.
Save JosephShenton/d49523f8e4332e891465a220b21a6dbd to your computer and use it in GitHub Desktop.
#!/bin/sh
printf "\n##########\n# Fixing our screw up...";
printf "\n# Fixing Hosts.";
echo "##" > /etc/hosts;
echo "# Host Database" >> /etc/hosts;
echo "#" >> /etc/hosts;
echo "# localhost is used to configure the loopback interface" >> /etc/hosts;
echo "# when the system is booting. Do not change this entry." >> /etc/hosts;
echo "##" >> /etc/hosts;
echo "127.0.0.1 localhost" >> /etc/hosts;
echo "255.255.255.255 broadcasthost" >> /etc/hosts;
echo "::1 localhost" >> /etc/hosts;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment