Created
December 3, 2011 17:55
-
-
Save stucchio/1427698 to your computer and use it in GitHub Desktop.
Making networking work on cloned Ubuntu VMs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if ! ifconfig eth0 && ! -f /var/log/rewriting-net-rules; | |
then | |
echo "Mac address for eth0 is incorrect." | |
/bin/rm -rf /etc/udev/rules.d/70-persistent-net.rules | |
touch /var/log/rewriting-net-rules | |
echo "Rebooting now." | |
/sbin/reboot | |
else | |
/bin/rm /var/log/rewriting-net-rules | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment