From e5e62f66a1c31b4935ba67f462835e5b245fc855 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Fri, 8 Feb 2013 21:24:25 +0100 Subject: Renumbering hooks. --- share/hooks/0200-remove-udev-persistent-rules.chroot | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100755 share/hooks/0200-remove-udev-persistent-rules.chroot (limited to 'share/hooks/0200-remove-udev-persistent-rules.chroot') diff --git a/share/hooks/0200-remove-udev-persistent-rules.chroot b/share/hooks/0200-remove-udev-persistent-rules.chroot new file mode 100755 index 000000000..148ba30d1 --- /dev/null +++ b/share/hooks/0200-remove-udev-persistent-rules.chroot @@ -0,0 +1,16 @@ +#!/bin/sh + +set -e + +# Remove udev persistent rules. +# +# This removes udev persistent rules that cache the host systems mac address to +# remember its device name. + +for _FILE in /etc/udev/rules.d/*persistent-net.rules +do + if [ -e "${_FILE}" ] + then + : > ${_FILE} + fi +done -- cgit v1.2.3