OpenSDE Packages Database (without history before r20070)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

164 lines
5.5 KiB

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