devfs-udev.rules 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. # The use of these rules is not recommended or supported.
  2. # In a world where devices can come and go at any time, the devfs scheme
  3. # of simple device enumeration does not help _anything_. Just forget about
  4. # it. Use custom rules to name your device or look at the persistent device
  5. # naming scheme, which is implemented for disks and add your subsystem.
  6. # ide block devices
  7. BUS="ide", KERNEL="hd*", PROGRAM="/etc/udev/ide-devfs.sh %k %b %n", NAME="%k", SYMLINK="%c{1} %c{2}"
  8. # md block devices
  9. KERNEL="md[0-9]*", NAME="md/%n"
  10. # floppy devices
  11. KERNEL="fd[0-9]*", NAME="floppy/%n"
  12. # tty devices
  13. KERNEL="tty[0-9]*", NAME="vc/%n", SYMLINK="%k"
  14. KERNEL="ttyS[0-9]*", NAME="tts/%n", SYMLINK="%k"
  15. KERNEL="ttyUSB[0-9]*", NAME="tts/USB%n"
  16. # vc devices
  17. KERNEL="vcs", NAME="vcc/0"
  18. KERNEL="vcs[0-9]*", NAME="vcc/%n"
  19. KERNEL="vcsa", NAME="vcc/a0"
  20. KERNEL="vcsa[0-9]*", NAME="vcc/a%n"
  21. # v4l devices
  22. KERNEL="video[0-9]*", NAME="v4l/video%n"
  23. KERNEL="radio[0-9]*", NAME="v4l/radio%n"
  24. KERNEL="vbi[0-9]*", NAME="v4l/vbi%n"
  25. KERNEL="vtx[0-9]*", NAME="v4l/vtx%n"
  26. # dm devices (ignore them)
  27. KERNEL="dm-[0-9]*", NAME=""
  28. # i2c devices
  29. KERNEL="i2c-[0-9]*", NAME="i2c/%n", SYMLINK="%k"
  30. # loop devices
  31. KERNEL="loop[0-9]*", NAME="loop/%n", SYMLINK="%k"
  32. # ramdisks
  33. KERNEL="ram[0-9]*", NAME="rd/%n", SYMLINK="%k"
  34. # framebuffer devices
  35. KERNEL="fb[0-9]*", NAME="fb/%n", SYMLINK="%k"
  36. # misc
  37. KERNEL="rtc", NAME="misc/%k", SYMLINK="%k"
  38. KERNEL="psaux", NAME="misc/%k", SYMLINK="%k"
  39. KERNEL="agpgart", NAME="misc/%k", SYMLINK="%k"
  40. KERNEL="rtc", NAME="misc/%k", SYMLINK="%k"
  41. KERNEL="psaux", NAME="misc/%k", SYMLINK="%k"
  42. KERNEL="uinput", NAME="misc/%k", SYMLINK="%k"
  43. # alsa devices
  44. KERNEL="controlC[0-9]*", NAME="snd/%k"
  45. KERNEL="hw[CD0-9]*", NAME="snd/%k"
  46. KERNEL="pcm[CD0-9cp]*", NAME="snd/%k"
  47. KERNEL="midi[CD0-9]*", NAME="snd/%k"
  48. KERNEL="timer", NAME="snd/%k"
  49. KERNEL="seq", NAME="snd/%k"
  50. # oss devices
  51. KERNEL="audio*", NAME="sound/%k", SYMLINK="%k"
  52. KERNEL="dmmidi", NAME="sound/%k", SYMLINK="%k"
  53. KERNEL="dsp*", NAME="sound/%k", SYMLINK="%k"
  54. KERNEL="midi*", NAME="sound/%k", SYMLINK="%k"
  55. KERNEL="mixer*", NAME="sound/%k", SYMLINK="%k"
  56. KERNEL="sequencer*", NAME="sound/%k", SYMLINK="%k"
  57. # input devices
  58. KERNEL="mice", NAME="input/%k"
  59. KERNEL="mouse*", NAME="input/%k"
  60. KERNEL="event*", NAME="input/%k"
  61. KERNEL="js*", NAME="input/%k"
  62. KERNEL="ts*", NAME="input/%k"
  63. # USB devices
  64. KERNEL="hiddev*", NAME="usb/%k"
  65. KERNEL="auer*", NAME="usb/%k"
  66. KERNEL="legousbtower*", NAME="usb/%k"
  67. KERNEL="dabusb*", NAME="usb/%k"
  68. BUS="usb", KERNEL="lp[0-9]*", NAME="usb/%k"
  69. # netlink devices
  70. KERNEL="route", NAME="netlink/%k"
  71. KERNEL="skip", NAME="netlink/%k"
  72. KERNEL="usersock", NAME="netlink/%k"
  73. KERNEL="fwmonitor", NAME="netlink/%k"
  74. KERNEL="tcpdiag", NAME="netlink/%k"
  75. KERNEL="nflog", NAME="netlink/%k"
  76. KERNEL="xfrm", NAME="netlink/%k"
  77. KERNEL="arpd", NAME="netlink/%k"
  78. KERNEL="route6", NAME="netlink/%k"
  79. KERNEL="ip6_fw", NAME="netlink/%k"
  80. KERNEL="dnrtmsg", NAME="netlink/%k"
  81. KERNEL="tap*", NAME="netlink/%k"
  82. # CAPI devices
  83. KERNEL="capi", NAME="capi20", SYMLINK="isdn/capi20"
  84. KERNEL="capi*", NAME="capi/%n"
  85. # Network devices
  86. KERNEL="tun", NAME="net/%k"
  87. # raw devices
  88. KERNEL="raw[0-9]*", NAME="raw/%k"