[f69952d] | 1 | # /etc/udev/rules.d/55-lfs.rules: Rule definitions for LFS.
|
---|
[1c48007] | 2 |
|
---|
| 3 | # Core kernel devices
|
---|
| 4 |
|
---|
| 5 | # override both of these
|
---|
| 6 | KERNEL=="random", MODE="0444"
|
---|
| 7 | KERNEL=="urandom", MODE="0444"
|
---|
| 8 |
|
---|
| 9 | KERNEL=="aio", MODE="0444"
|
---|
| 10 | KERNEL=="kmsg", MODE="0600"
|
---|
| 11 | KERNEL=="rtc", MODE="0666"
|
---|
| 12 |
|
---|
| 13 | # Comms devices
|
---|
| 14 |
|
---|
[bb8939c] | 15 | KERNEL=="rfcomm[0-9]*", GROUP="dialout"
|
---|
| 16 | KERNEL=="ippp[0-9]*", GROUP="dialout"
|
---|
| 17 | KERNEL=="isdn[0-9]*", GROUP="dialout"
|
---|
| 18 | KERNEL=="isdnctrl[0-9]*", GROUP="dialout"
|
---|
| 19 | KERNEL=="dcbri[0-9]*", GROUP="dialout"
|
---|
[1c48007] | 20 |
|
---|
| 21 | # ALSA devices go in their own subdirectory
|
---|
| 22 |
|
---|
| 23 | KERNEL=="controlC[0-9]*", GROUP="audio", NAME="snd/%k"
|
---|
| 24 | KERNEL=="hwC[0-9]*D[0-9]*", GROUP="audio", NAME="snd/%k"
|
---|
| 25 | KERNEL=="pcmC[0-9]*D[0-9]*[cp]", GROUP="audio", NAME="snd/%k"
|
---|
| 26 | KERNEL=="midiC[0-9]*D[0-9]*", GROUP="audio", NAME="snd/%k"
|
---|
| 27 | KERNEL=="timer", GROUP="audio", NAME="snd/%k"
|
---|
| 28 | KERNEL=="seq", GROUP="audio", NAME="snd/%k"
|
---|
| 29 |
|
---|
| 30 | # Sound devices
|
---|
| 31 |
|
---|
| 32 | KERNEL=="admmidi*", GROUP="audio"
|
---|
| 33 | KERNEL=="adsp*", GROUP="audio"
|
---|
| 34 | KERNEL=="aload*", GROUP="audio"
|
---|
| 35 | KERNEL=="amidi*", GROUP="audio"
|
---|
| 36 | KERNEL=="amixer*", GROUP="audio"
|
---|
| 37 | KERNEL=="audio*", GROUP="audio"
|
---|
| 38 | KERNEL=="dmfm*", GROUP="audio"
|
---|
| 39 | KERNEL=="dmmidi*", GROUP="audio"
|
---|
| 40 | KERNEL=="dsp*", GROUP="audio"
|
---|
| 41 | KERNEL=="midi*", GROUP="audio"
|
---|
| 42 | KERNEL=="mixer*", GROUP="audio"
|
---|
| 43 | KERNEL=="music", GROUP="audio"
|
---|
| 44 | KERNEL=="sequencer*", GROUP="audio"
|
---|
| 45 |
|
---|
| 46 | # Input devices
|
---|
| 47 |
|
---|
| 48 | # override MODE on these four
|
---|
| 49 | KERNEL=="mice", MODE="0644", SYMLINK+="mouse"
|
---|
| 50 | KERNEL=="mouse*", MODE="0644"
|
---|
| 51 | KERNEL=="event*", MODE="0644"
|
---|
| 52 | KERNEL=="ts*", MODE="0644"
|
---|
| 53 |
|
---|
| 54 | KERNEL=="psaux", MODE="0644"
|
---|
| 55 |
|
---|
| 56 | # DRI devices are managed by the X server, so prevent udev from creating them
|
---|
| 57 |
|
---|
| 58 | KERNEL=="card*", OPTIONS+="ignore_device"
|
---|
| 59 |
|
---|
| 60 | # Video devices
|
---|
| 61 |
|
---|
| 62 | KERNEL=="fb[0-9]*", GROUP="video"
|
---|
| 63 |
|
---|
| 64 | # Storage/memory devices
|
---|
| 65 |
|
---|
| 66 | # override: make group-writable
|
---|
| 67 | SUBSYSTEM=="block", MODE="0660"
|
---|
| 68 |
|
---|
| 69 | # dmsetup and lvm2 related programs create devicemapper devices so we prevent
|
---|
| 70 | # udev from creating them
|
---|
| 71 |
|
---|
| 72 | KERNEL=="dm-*", OPTIONS+="ignore_device"
|
---|
| 73 |
|
---|
| 74 | # Tape devices
|
---|
| 75 |
|
---|
| 76 | # override all these
|
---|
| 77 | KERNEL=="ht[0-9]*", GROUP="tape"
|
---|
| 78 | KERNEL=="nht[0-9]*", GROUP="tape"
|
---|
| 79 | KERNEL=="pt[0-9]*", GROUP="tape"
|
---|
| 80 | KERNEL=="npt[0-9]*", GROUP="tape"
|
---|
| 81 | KERNEL=="st[0-9]*", GROUP="tape"
|
---|
| 82 | KERNEL=="nst[0-9]*", GROUP="tape"
|
---|
[a4e48686] | 83 |
|
---|
| 84 | # Override floppy devices
|
---|
[a1712769] | 85 | KERNEL=="fd[0-9]", ACTION=="add|change", ATTRS{cmos}=="?*", \
|
---|
| 86 | RUN+="create_floppy_devices -c -t $attr{cmos} -m %M -M 0660 -G floppy $root/%k"
|
---|
[4c40da5] | 87 |
|
---|