2008-11-12 03:49:38 +00:00
|
|
|
# /etc/udev/rules.d/55-lfs.rules: Rule definitions for LFS.
|
2008-06-03 22:51:14 +01:00
|
|
|
|
|
|
|
# Core kernel devices
|
|
|
|
|
2009-05-23 13:29:29 +01:00
|
|
|
# This causes the system clock to be set as soon as /dev/rtc becomes available.
|
|
|
|
SUBSYSTEM=="rtc", MODE="0644", ACTION=="add", RUN+="/etc/rc.d/init.d/setclock start"
|
2008-06-03 22:51:14 +01:00
|
|
|
|
|
|
|
# Comms devices
|
|
|
|
|
2009-03-16 04:29:00 +00:00
|
|
|
KERNEL=="ippp[0-9]*", GROUP="dialout"
|
|
|
|
KERNEL=="isdn[0-9]*", GROUP="dialout"
|
|
|
|
KERNEL=="isdnctrl[0-9]*", GROUP="dialout"
|
|
|
|
KERNEL=="dcbri[0-9]*", GROUP="dialout"
|
2008-06-03 22:51:14 +01:00
|
|
|
|
|
|
|
# ALSA devices go in their own subdirectory
|
|
|
|
|
|
|
|
KERNEL=="controlC[0-9]*", GROUP="audio", NAME="snd/%k"
|
|
|
|
KERNEL=="hwC[0-9]*D[0-9]*", GROUP="audio", NAME="snd/%k"
|
|
|
|
KERNEL=="pcmC[0-9]*D[0-9]*[cp]", GROUP="audio", NAME="snd/%k"
|
|
|
|
KERNEL=="midiC[0-9]*D[0-9]*", GROUP="audio", NAME="snd/%k"
|
|
|
|
KERNEL=="timer", GROUP="audio", NAME="snd/%k"
|
|
|
|
KERNEL=="seq", GROUP="audio", NAME="snd/%k"
|
|
|
|
|
|
|
|
# Sound devices
|
|
|
|
|
|
|
|
KERNEL=="admmidi*", GROUP="audio"
|
|
|
|
KERNEL=="adsp*", GROUP="audio"
|
|
|
|
KERNEL=="aload*", GROUP="audio"
|
|
|
|
KERNEL=="amidi*", GROUP="audio"
|
|
|
|
KERNEL=="amixer*", GROUP="audio"
|
|
|
|
KERNEL=="audio*", GROUP="audio"
|
|
|
|
KERNEL=="dmfm*", GROUP="audio"
|
|
|
|
KERNEL=="dmmidi*", GROUP="audio"
|
|
|
|
KERNEL=="dsp*", GROUP="audio"
|
|
|
|
KERNEL=="midi*", GROUP="audio"
|
|
|
|
KERNEL=="mixer*", GROUP="audio"
|
|
|
|
KERNEL=="music", GROUP="audio"
|
|
|
|
KERNEL=="sequencer*", GROUP="audio"
|
|
|
|
|
|
|
|
# Input devices
|
|
|
|
|
2009-05-18 06:19:52 +01:00
|
|
|
KERNEL=="mice", SYMLINK+="mouse"
|
2008-06-03 22:51:14 +01:00
|
|
|
|
|
|
|
# DRI devices are managed by the X server, so prevent udev from creating them
|
|
|
|
|
|
|
|
KERNEL=="card*", OPTIONS+="ignore_device"
|
|
|
|
|
|
|
|
# Video devices
|
|
|
|
|
|
|
|
KERNEL=="fb[0-9]*", GROUP="video"
|
|
|
|
|
|
|
|
# Storage/memory devices
|
|
|
|
|
|
|
|
# dmsetup and lvm2 related programs create devicemapper devices so we prevent
|
|
|
|
# udev from creating them
|
|
|
|
|
|
|
|
KERNEL=="dm-*", OPTIONS+="ignore_device"
|
|
|
|
|
2008-10-15 04:02:25 +01:00
|
|
|
# Override floppy devices
|
2008-12-29 17:37:16 +00:00
|
|
|
KERNEL=="fd[0-9]", ACTION=="add|change", ATTRS{cmos}=="?*", \
|
|
|
|
RUN+="create_floppy_devices -c -t $attr{cmos} -m %M -M 0660 -G floppy $root/%k"
|