Sha256: 35314c31f70656ebc6ac3a7bde36bb1e3d93b85af9893c7b557c81daea36f5ce

Contents?: true

Size: 740 Bytes

Versions: 48

Compression:

Stored size: 740 Bytes

Contents

#!/bin/bash

if [ -f .veewee_params ]
then
  . .veewee_params
fi

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

# Clean up tmp
rm -rf /tmp/*

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

# 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

48 entries across 12 versions & 1 rubygems

Version Path
veewee-0.5.0.alpha4 templates/ubuntu-10.04.4-server-i386-netboot/cleanup.sh
veewee-0.5.0.alpha4 templates/ubuntu-10.04.4-server-i386/cleanup.sh
veewee-0.5.0.alpha4 templates/ubuntu-10.04.4-server-amd64-netboot/cleanup.sh
veewee-0.5.0.alpha4 templates/ubuntu-10.04.4-server-amd64/cleanup.sh
veewee-0.5.0.alpha3 templates/ubuntu-10.04.4-server-i386-netboot/cleanup.sh
veewee-0.5.0.alpha3 templates/ubuntu-10.04.4-server-amd64/cleanup.sh
veewee-0.5.0.alpha3 templates/ubuntu-10.04.4-server-amd64-netboot/cleanup.sh
veewee-0.5.0.alpha3 templates/ubuntu-10.04.4-server-i386/cleanup.sh
veewee-0.5.0.alpha2 templates/ubuntu-10.04.4-server-amd64/cleanup.sh
veewee-0.5.0.alpha2 templates/ubuntu-10.04.4-server-i386-netboot/cleanup.sh
veewee-0.5.0.alpha2 templates/ubuntu-10.04.4-server-i386/cleanup.sh
veewee-0.5.0.alpha2 templates/ubuntu-10.04.4-server-amd64-netboot/cleanup.sh
veewee-0.5.0.alpha1 templates/ubuntu-10.04.4-server-amd64-netboot/cleanup.sh
veewee-0.5.0.alpha1 templates/ubuntu-10.04.4-server-amd64/cleanup.sh
veewee-0.5.0.alpha1 templates/ubuntu-10.04.4-server-i386-netboot/cleanup.sh
veewee-0.5.0.alpha1 templates/ubuntu-10.04.4-server-i386/cleanup.sh
veewee-0.4.5.1 templates/ubuntu-10.04.4-server-amd64/cleanup.sh
veewee-0.4.5.1 templates/ubuntu-10.04.4-server-i386-netboot/cleanup.sh
veewee-0.4.5.1 templates/ubuntu-10.04.4-server-i386/cleanup.sh
veewee-0.4.5.1 templates/ubuntu-10.04.4-server-amd64-netboot/cleanup.sh