summaryrefslogtreecommitdiff
path: root/templates/Debian-8.0-amd64-netboot/cleanup.sh
diff options
context:
space:
mode:
Diffstat (limited to 'templates/Debian-8.0-amd64-netboot/cleanup.sh')
-rw-r--r--templates/Debian-8.0-amd64-netboot/cleanup.sh18
1 files changed, 0 insertions, 18 deletions
diff --git a/templates/Debian-8.0-amd64-netboot/cleanup.sh b/templates/Debian-8.0-amd64-netboot/cleanup.sh
deleted file mode 100644
index f6953e1..0000000
--- a/templates/Debian-8.0-amd64-netboot/cleanup.sh
+++ /dev/null
@@ -1,18 +0,0 @@
-# Clean up
-apt-get -y remove linux-headers-$(uname -r) build-essential
-apt-get -y autoremove
-apt-get -y clean
-
-# Removing leftover leases and persistent rules
-echo "cleaning up dhcp leases"
-rm /var/lib/dhcp/*
-
-# Make sure Udev doesn't block our network
-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