From 45f1f9f0a0783479dec16138fdd095291577c843 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Mon, 6 May 2013 19:40:42 +0200 Subject: Renaming remove-udev-persistent-rules.chroot hook to remove-udev-persistent-net-rules.chroot for future additional udev hooks. --- share/hooks/0200-remove-udev-persistent-net-rules.chroot | 16 ++++++++++++++++ share/hooks/0200-remove-udev-persistent-rules.chroot | 16 ---------------- 2 files changed, 16 insertions(+), 16 deletions(-) create mode 100755 share/hooks/0200-remove-udev-persistent-net-rules.chroot delete mode 100755 share/hooks/0200-remove-udev-persistent-rules.chroot (limited to 'share/hooks') diff --git a/share/hooks/0200-remove-udev-persistent-net-rules.chroot b/share/hooks/0200-remove-udev-persistent-net-rules.chroot new file mode 100755 index 000000000..148ba30d1 --- /dev/null +++ b/share/hooks/0200-remove-udev-persistent-net-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 diff --git a/share/hooks/0200-remove-udev-persistent-rules.chroot b/share/hooks/0200-remove-udev-persistent-rules.chroot deleted file mode 100755 index 148ba30d1..000000000 --- a/share/hooks/0200-remove-udev-persistent-rules.chroot +++ /dev/null @@ -1,16 +0,0 @@ -#!/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