[7e161ea] | 1 | ########################################################################
|
---|
| 2 | #
|
---|
[1f7827a2] | 3 | # Description : 50-udev.rules
|
---|
[7e161ea] | 4 | #
|
---|
| 5 | # Authors : Based on Open Suse Udev Rules
|
---|
| 6 | # kay.sievers@suse.de
|
---|
| 7 | #
|
---|
| 8 | # Adapted to : Jim Gifford
|
---|
[1f7827a2] | 9 | # LFS : Alexander E. Patrakov
|
---|
[7e161ea] | 10 | #
|
---|
| 11 | # Version : 00.01
|
---|
| 12 | #
|
---|
| 13 | # Notes :
|
---|
| 14 | #
|
---|
| 15 | ########################################################################
|
---|
| 16 |
|
---|
[5e2628a1] | 17 | # block devices
|
---|
| 18 | SUBSYSTEM=="block", GROUP="disk", MODE="0640"
|
---|
| 19 |
|
---|
[7e161ea] | 20 | # console
|
---|
[858a93d] | 21 | KERNEL=="pty[pqrstuvwxyzabcdef][0123456789abcdef]", GROUP="tty", MODE="666", OPTIONS="last_rule"
|
---|
| 22 | KERNEL=="tty[pqrstuvwxyzabcdef][0123456789abcdef]", GROUP="tty", MODE="666", OPTIONS="last_rule"
|
---|
| 23 | KERNEL=="vcs*", GROUP="tty", MODE="620", OPTIONS="last_rule"
|
---|
| 24 | KERNEL=="tty", GROUP="tty", MODE="666", OPTIONS="last_rule"
|
---|
| 25 | KERNEL=="tty[0-9]*", GROUP="tty", MODE="620", OPTIONS="last_rule"
|
---|
| 26 | KERNEL=="console", MODE="600", OPTIONS="last_rule"
|
---|
| 27 | KERNEL=="ptmx", GROUP="tty", MODE="666", OPTIONS="last_rule"
|
---|
[7e161ea] | 28 |
|
---|
| 29 | # serial devices
|
---|
[90d6419] | 30 | KERNEL=="tty[A-Z]*|pppox*|ircomm*|noz*", GROUP="uucp"
|
---|
| 31 | KERNEL=="mwave", NAME="modems/%k", GROUP="uucp"
|
---|
| 32 | KERNEL=="hvc*|hvsi*", GROUP="uucp"
|
---|
| 33 | KERNEL=="iseries/vtty*", GROUP="uucp"
|
---|
| 34 | KERNEL=="ttyUSB*", ATTRS{product}=="[Pp]alm*Handheld*", SYMLINK+="pilot"
|
---|
| 35 | KERNEL=="ttyUSB*", ATTRS{product}=="[Hh]andspring*Treo*|[Hh]andspring*Visor*", SYMLINK+="pilot"
|
---|
[7e161ea] | 36 |
|
---|
| 37 | # video/graphics
|
---|
| 38 | SUBSYSTEM=="video4linux", GROUP="video"
|
---|
| 39 | SUBSYSTEM=="graphics" GROUP="video"
|
---|
[90d6419] | 40 | KERNEL=="vtx*|vbi*", GROUP="video"
|
---|
[858a93d] | 41 | KERNEL=="winradio*", GROUP="video"
|
---|
| 42 | KERNEL=="vttuner*", GROUP="video"
|
---|
[90d6419] | 43 | KERNEL=="nvidia*|nvidiactl*", GROUP="video"
|
---|
[7e161ea] | 44 | KERNEL=="video0", SYMLINK+="video"
|
---|
| 45 | KERNEL=="radio0", SYMLINK+="radio"
|
---|
| 46 | KERNEL=="vbi0", SYMLINK+="vbi"
|
---|
| 47 | KERNEL=="pmu", GROUP="video"
|
---|
| 48 |
|
---|
| 49 | # dvb
|
---|
[f59ed2c] | 50 | SUBSYSTEM=="dvb", PROGRAM="/bin/sh -c 'K=%k; K=$${K#dvb}; printf dvb/adapter%%i/%%s $${K%%%%.*} $${K#*.}'", NAME="%c", GROUP="video"
|
---|
[7e161ea] | 51 |
|
---|
| 52 | # input devices
|
---|
[90d6419] | 53 | KERNEL=="mouse*|mice", NAME="input/%k", MODE="0640"
|
---|
[7e161ea] | 54 | KERNEL=="event*", NAME="input/%k", MODE="0640"
|
---|
| 55 | KERNEL=="js*", NAME="input/%k", MODE="0644"
|
---|
| 56 | KERNEL=="ts*", NAME="input/%k", MODE="0600"
|
---|
| 57 | KERNEL=="uinput", NAME="input/%k", MODE="0600"
|
---|
[858a93d] | 58 | KERNEL=="lirc0", SYMLINK+="lirc"
|
---|
[7e161ea] | 59 |
|
---|
| 60 | # printer
|
---|
| 61 | SUBSYSTEM=="usb", KERNEL=="lp*", NAME="usb/%k", SYMLINK+="usb%k", GROUP="lp"
|
---|
| 62 | SUBSYSTEM=="printer", KERNEL=="lp*", NAME="%k", GROUP="lp"
|
---|
[858a93d] | 63 | KERNEL=="irlpt*", GROUP="lp"
|
---|
[7e161ea] | 64 |
|
---|
| 65 | # cpu devices
|
---|
| 66 | KERNEL=="cpu[0-9]*", NAME="cpu/%n/cpuid"
|
---|
| 67 | KERNEL=="msr[0-9]*", NAME="cpu/%n/msr"
|
---|
| 68 | KERNEL=="microcode", NAME="cpu/microcode", MODE="0600"
|
---|
| 69 |
|
---|
| 70 | # IEEE1394 devices
|
---|
[858a93d] | 71 | KERNEL=="raw1394*", GROUP="video"
|
---|
| 72 | KERNEL=="dv1394*", SYMLINK+="dv1394/%n", GROUP="video"
|
---|
| 73 | KERNEL=="video1394*", SYMLINK+="video1394/%n", GROUP="video"
|
---|
[7e161ea] | 74 |
|
---|
| 75 | # 183 = /dev/hwrng Generic random number generator
|
---|
| 76 | KERNEL=="hw_random", NAME="hwrng", SYMLINK+="%k"
|
---|
[1f7827a2] | 77 |
|
---|
[7e161ea] | 78 | # 219 /dev/modems/mwave MWave modem firmware upload
|
---|
| 79 | KERNEL=="mwave", NAME="modems/%k"
|
---|
[1f7827a2] | 80 |
|
---|
[7e161ea] | 81 | # 169 /dev/specialix_rioctl Specialix RIO serial control
|
---|
| 82 | KERNEL=="rioctl", NAME="specialix_rioctl", SYMLINK+="%k"
|
---|
[1f7827a2] | 83 |
|
---|
[7e161ea] | 84 | # 167 /dev/specialix_sxctl Specialix serial control
|
---|
| 85 | KERNEL=="sxctl", NAME="specialix_sxctl", SYMLINK+="%k"
|
---|
| 86 |
|
---|
[a6cd72e] | 87 | # network
|
---|
[1f7827a2] | 88 | KERNEL=="tun", NAME="net/%k", MODE="0600"
|
---|
[a6cd72e] | 89 |
|
---|
[7e161ea] | 90 | # misc devices
|
---|
[90d6419] | 91 | KERNEL=="mem|kmem", GROUP="kmem", MODE="640"
|
---|
[858a93d] | 92 | KERNEL=="port", GROUP="kmem", MODE="640"
|
---|
| 93 | KERNEL=="nvram", GROUP="kmem", MODE="600"
|
---|
| 94 | KERNEL=="null", MODE="666"
|
---|
| 95 | KERNEL=="zero", MODE="666"
|
---|
| 96 | KERNEL=="full", MODE="622"
|
---|
| 97 | KERNEL=="random", MODE="666"
|
---|
| 98 | KERNEL=="urandom", MODE="644"
|
---|
[7e161ea] | 99 | KERNEL=="rtc", GROUP="audio"
|
---|
[858a93d] | 100 | KERNEL=="sonypi", MODE="666"
|
---|
| 101 | KERNEL=="agpgart", MODE="600", GROUP="video"
|
---|
| 102 | KERNEL=="djs*", MODE="644"
|
---|
| 103 | KERNEL=="sgi_*", MODE="666"
|
---|
| 104 | KERNEL=="rrom*", MODE="400"
|
---|
| 105 | KERNEL=="rflash*", MODE="400"
|
---|
| 106 | KERNEL=="usbscanner*", MODE="644"
|
---|
| 107 | KERNEL=="3270/ttycons*", MODE="600"
|
---|
| 108 | KERNEL=="3270/tub*", MODE="666"
|
---|
| 109 | KERNEL=="3270/tubcons*", MODE="600"
|
---|
| 110 | KERNEL=="ica", MODE="666"
|
---|
| 111 | KERNEL=="z90crypt", MODE="666"
|
---|
| 112 | KERNEL=="mmtimer", MODE="444"
|
---|
[7e161ea] | 113 | KERNEL=="auer[0-9]*" NAME="usb/%k"
|
---|
| 114 |
|
---|
[a6cd72e] | 115 | # packet writing interface
|
---|
[7e161ea] | 116 | KERNEL=="pktcdvd", NAME="pktcdvd/control"
|
---|
| 117 | KERNEL=="pktcdvd[0-9]*", NAME="pktcdvd/%k"
|
---|
| 118 |
|
---|
| 119 | # fix floppy devices
|
---|
[529837f] | 120 | KERNEL=="fd[0-9]*", ACTION=="add", GROUP="floppy", MODE="660"
|
---|
[1f7827a2] | 121 | KERNEL=="fd[0-9]*", ACTION=="remove", RUN+="/bin/rm -f $root/%k*"
|
---|
[7e161ea] | 122 |
|
---|
| 123 | # sd: 0 TYPE_DISK, 7 TYPE_MOD, 14 TYPE_RBC
|
---|
| 124 | # sr: 4 TYPE_WORM, 5 TYPE_ROM
|
---|
| 125 | # st/osst: 1 TYPE_TAPE
|
---|
[910b1f6] | 126 | ACTION=="add", SUBSYSTEM=="scsi" , ATTR{type}=="0|7|14", ATTR{timeout}="60"
|
---|
| 127 | ACTION=="add", SUBSYSTEM=="scsi" , ATTR{type}=="1", ATTR{timeout}="900"
|
---|
[7e161ea] | 128 |
|
---|
| 129 | # misc storage devices (non-block)
|
---|
[858a93d] | 130 | KERNEL=="sg*", GROUP="disk", MODE="640"
|
---|
[cf3e88b1] | 131 | KERNEL=="sr*", GROUP="cdrom", MODE="660"
|
---|
[858a93d] | 132 | KERNEL=="st*", GROUP="tape"
|
---|
| 133 | KERNEL=="nst*", GROUP="tape"
|
---|
| 134 | KERNEL=="initrd", GROUP="disk"
|
---|
| 135 | KERNEL=="qft*", GROUP="tape"
|
---|
| 136 | KERNEL=="nqft*", GROUP="tape"
|
---|
| 137 | KERNEL=="zqft*", GROUP="tape"
|
---|
| 138 | KERNEL=="nzqft*", GROUP="tape"
|
---|
| 139 | KERNEL=="rawqft*", GROUP="tape"
|
---|
| 140 | KERNEL=="nrawqft*", GROUP="tape"
|
---|
| 141 | KERNEL=="pf*", GROUP="disk"
|
---|
| 142 | KERNEL=="sch*", GROUP="disk"
|
---|
| 143 | KERNEL=="pt*", GROUP="tape"
|
---|
| 144 | KERNEL=="npt*", GROUP="tape"
|
---|
| 145 | KERNEL=="pg*", GROUP="disk"
|
---|
| 146 | KERNEL=="evms/block_device*", GROUP="disk"
|
---|
| 147 | KERNEL=="rawctl*", GROUP="disk"
|
---|
[90d6419] | 148 | SUBSYSTEM=="block", KERNEL=="raw[0-9]*", NAME="raw/%k", GROUP="disk"
|
---|
| 149 | KERNEL=="osst*|nosst*", GROUP="tape"
|
---|
[858a93d] | 150 | KERNEL=="iseries/vt*", GROUP="disk"
|
---|
| 151 | KERNEL=="iseries/nvt*", GROUP="disk"
|
---|
| 152 | KERNEL=="iseries/ibmsis*", GROUP="disk"
|
---|
[7e161ea] | 153 |
|
---|
| 154 | # libusb device access
|
---|
[c08883a] | 155 | SUBSYSTEM=="usb_device", PROGRAM="/bin/sh -c 'K=%k; K=$${K#usbdev}; printf bus/usb/%%03i/%%03i $${K%%%%.*} $${K#*.}'", NAME="%c", MODE="0660", GROUP="usb"
|
---|