diff options
author | varac <varacanero@zeromail.org> | 2015-04-29 14:23:31 +0200 |
---|---|---|
committer | varac <varacanero@zeromail.org> | 2015-04-29 14:23:31 +0200 |
commit | fdd0c448125173a69582a59e4a969f4dabcb52e7 (patch) | |
tree | 77cff4140c9e92fb0d71a91118737682969714d9 /templates/Debian-8.0-amd64-netboot/cleanup.sh | |
parent | baa558a70efcba73f909752331aabb2056c74f50 (diff) |
added templates/Debian-8.0-amd64-netboot based on original Debian-7.7.0-amd64-netboot veewee template
Diffstat (limited to 'templates/Debian-8.0-amd64-netboot/cleanup.sh')
-rw-r--r-- | templates/Debian-8.0-amd64-netboot/cleanup.sh | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/templates/Debian-8.0-amd64-netboot/cleanup.sh b/templates/Debian-8.0-amd64-netboot/cleanup.sh new file mode 100644 index 0000000..f6953e1 --- /dev/null +++ b/templates/Debian-8.0-amd64-netboot/cleanup.sh @@ -0,0 +1,18 @@ +# 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 |