[f69952d] | 1 | # /etc/udev/rules.d/55-lfs.rules: Rule definitions for LFS.
|
---|
[1c48007] | 2 |
|
---|
| 3 | # Core kernel devices
|
---|
| 4 |
|
---|
[63f6e21] | 5 | # This causes the system clock to be set as soon as /dev/rtc becomes available.
|
---|
| 6 | SUBSYSTEM=="rtc", MODE="0644", ACTION=="add", RUN+="/etc/rc.d/init.d/setclock start"
|
---|
[1c48007] | 7 |
|
---|
| 8 | # Comms devices
|
---|
| 9 |
|
---|
[bb8939c] | 10 | KERNEL=="ippp[0-9]*", GROUP="dialout"
|
---|
| 11 | KERNEL=="isdn[0-9]*", GROUP="dialout"
|
---|
| 12 | KERNEL=="isdnctrl[0-9]*", GROUP="dialout"
|
---|
| 13 | KERNEL=="dcbri[0-9]*", GROUP="dialout"
|
---|
[1c48007] | 14 |
|
---|
| 15 | # ALSA devices go in their own subdirectory
|
---|
| 16 |
|
---|
| 17 | KERNEL=="controlC[0-9]*", GROUP="audio", NAME="snd/%k"
|
---|
| 18 | KERNEL=="hwC[0-9]*D[0-9]*", GROUP="audio", NAME="snd/%k"
|
---|
| 19 | KERNEL=="pcmC[0-9]*D[0-9]*[cp]", GROUP="audio", NAME="snd/%k"
|
---|
| 20 | KERNEL=="midiC[0-9]*D[0-9]*", GROUP="audio", NAME="snd/%k"
|
---|
| 21 | KERNEL=="timer", GROUP="audio", NAME="snd/%k"
|
---|
| 22 | KERNEL=="seq", GROUP="audio", NAME="snd/%k"
|
---|
| 23 |
|
---|
| 24 | # Sound devices
|
---|
| 25 |
|
---|
| 26 | KERNEL=="admmidi*", GROUP="audio"
|
---|
| 27 | KERNEL=="adsp*", GROUP="audio"
|
---|
| 28 | KERNEL=="aload*", GROUP="audio"
|
---|
| 29 | KERNEL=="amidi*", GROUP="audio"
|
---|
| 30 | KERNEL=="amixer*", GROUP="audio"
|
---|
| 31 | KERNEL=="audio*", GROUP="audio"
|
---|
| 32 | KERNEL=="dmfm*", GROUP="audio"
|
---|
| 33 | KERNEL=="dmmidi*", GROUP="audio"
|
---|
| 34 | KERNEL=="dsp*", GROUP="audio"
|
---|
| 35 | KERNEL=="midi*", GROUP="audio"
|
---|
| 36 | KERNEL=="mixer*", GROUP="audio"
|
---|
| 37 | KERNEL=="music", GROUP="audio"
|
---|
| 38 | KERNEL=="sequencer*", GROUP="audio"
|
---|
| 39 |
|
---|
| 40 | # Input devices
|
---|
| 41 |
|
---|
[d983457] | 42 | KERNEL=="mice", SYMLINK+="mouse"
|
---|
[1c48007] | 43 |
|
---|
| 44 | # DRI devices are managed by the X server, so prevent udev from creating them
|
---|
| 45 |
|
---|
| 46 | KERNEL=="card*", OPTIONS+="ignore_device"
|
---|
| 47 |
|
---|
| 48 | # Video devices
|
---|
| 49 |
|
---|
| 50 | KERNEL=="fb[0-9]*", GROUP="video"
|
---|
| 51 |
|
---|
| 52 | # Storage/memory devices
|
---|
| 53 |
|
---|
| 54 | # dmsetup and lvm2 related programs create devicemapper devices so we prevent
|
---|
| 55 | # udev from creating them
|
---|
| 56 |
|
---|
| 57 | KERNEL=="dm-*", OPTIONS+="ignore_device"
|
---|
| 58 |
|
---|
[a4e48686] | 59 | # Override floppy devices
|
---|
[a1712769] | 60 | KERNEL=="fd[0-9]", ACTION=="add|change", ATTRS{cmos}=="?*", \
|
---|
| 61 | RUN+="create_floppy_devices -c -t $attr{cmos} -m %M -M 0660 -G floppy $root/%k"
|
---|