Skip to content

Instantly share code, notes, and snippets.

@Sutto
Created August 18, 2010 09:27
Show Gist options
  • Save Sutto/534140 to your computer and use it in GitHub Desktop.
Save Sutto/534140 to your computer and use it in GitHub Desktop.
#!/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