source: live-build/trunk/fuentes/share/hooks/008-remove-udev-persistent-rules.chroot @ 900

Last change on this file since 900 was 900, checked in by kbut, 3 years ago

add original source

  • Property svn:executable set to *
File size: 270 bytes
Line 
1#!/bin/sh
2
3set -e
4
5# Remove udev persistent rules.
6#
7# This removes udev persistent rules that cache the host systems mac address to
8# remember its device name.
9
10for _FILE in /etc/udev/rules.d/*persistent-net.rules
11do
12        if [ -e "${_FILE}" ]
13        then
14                : > ${_FILE}
15        fi
16done
Note: See TracBrowser for help on using the repository browser.