Sha256: 2404143afff1be051d7fa788ae11165c6442fa753b18552b4d4d9ad4fb742827

Contents?: true

Size: 776 Bytes

Versions: 12

Compression:

Stored size: 776 Bytes

Contents

# Remove items used for building, since they aren't needed anymore
echo "removing unnessary packages"
apt-get -y remove linux-headers-$(uname -r) build-essential
apt-get -y autoremove

# Removing leftover leases and persistent rules
echo "cleaning up dhcp leases"
rm /var/lib/dhcp/*

echo "cleaning apt cache"
apt-get clean

echo "cleaning gem cache"
rm /var/lib/gems/1.9.1/cache/*

# Make sure Udev doesn't block our network
# http://6.ptmc.org/?p=164
echo "cleaning up udev rules"
rm /etc/udev/rules.d/70-persistent-net.rules
mkdir /etc/udev/rules.d/70-persistent-net.rules
rm -rf /dev/.udev/
rm /lib/udev/rules.d/75-persistent-net-generator.rules

echo "Adding a 2 sec delay to the interface up, to make the dhclient happy"
echo "pre-up sleep 2" >> /etc/network/interfaces

Version data entries

12 entries across 4 versions & 1 rubygems

Version Path
veewee-0.3.12 templates/.ubuntu/cleanup.sh
veewee-0.3.12 templates/ubuntu-12.10-server-amd64-packages/cleanup.sh
veewee-0.3.12 templates/ubuntu-12.10-server-i386-packages/cleanup.sh
veewee-0.3.11 templates/.ubuntu/cleanup.sh
veewee-0.3.11 templates/ubuntu-12.10-server-amd64-packages/cleanup.sh
veewee-0.3.11 templates/ubuntu-12.10-server-i386-packages/cleanup.sh
veewee-0.3.10 templates/.ubuntu/cleanup.sh
veewee-0.3.10 templates/ubuntu-12.10-server-amd64-packages/cleanup.sh
veewee-0.3.10 templates/ubuntu-12.10-server-i386-packages/cleanup.sh
veewee-0.3.9 templates/.ubuntu/cleanup.sh
veewee-0.3.9 templates/ubuntu-12.10-server-amd64-packages/cleanup.sh
veewee-0.3.9 templates/ubuntu-12.10-server-i386-packages/cleanup.sh