2011-08-23 15:13:45 +00:00
|
|
|
#!/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.
|
|
|
|
|
2012-07-08 17:23:12 +00:00
|
|
|
for _FILE in /etc/udev/rules.d/*persistent-net.rules
|
|
|
|
do
|
|
|
|
if [ -e "${_FILE}" ]
|
|
|
|
then
|
|
|
|
: > ${_FILE}
|
|
|
|
fi
|
|
|
|
done
|