Created
August 18, 2010 09:27
-
-
Save Sutto/534140 to your computer and use it in GitHub Desktop.
This file contains 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
#!/bin/bash | |
echo "Cleaning up packages" | |
apt-get --purge remove | |
echo "Removing ssh" | |
apt-get --purge -y remove openssh-server | |
echo "Cleaning up RVM" | |
rvm cleanup all | |
echo "Marking for boot" | |
touch /opt/rvm-appliance/initial-boot | |
chmod 666 /opt/rvm-appliance/initial-boot | |
echo "Preparing udev rules" | |
cat <<END > /etc/udev/rules.d/70-persistent-net.rules | |
# This file was automatically generated by the /lib/udev/write_net_rules | |
# program, run by the persistent-net-generator.rules rules file. | |
# | |
# You can modify it, as long as you keep each rule on a single | |
# line, and change only the value of the NAME= key. | |
END | |
echo "Cleaning up history" | |
history -c |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment