Advertisement
svenhoefer

Untitled

Oct 27th, 2017
254
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.69 KB | None | 0 0
  1. # /etc/mdev.conf
  2.  
  3. # Syntax:
  4. # [-]devicename_regex user:group mode [=path]|[>path]|[!] [@|$|*cmd args...]
  5. # [-]$ENVVAR=regex user:group mode [=path]|[>path]|[!] [@|$|*cmd args...]
  6. # [-]@maj,min[-min2] user:group mode [=path]|[>path]|[!] [@|$|*cmd args...]
  7. #
  8. # [-]: do not stop on this match, continue reading mdev.conf
  9. # =: move, >: move and create a symlink
  10. # !: do not create device node
  11. # @|$|*: run cmd if $ACTION=remove, @cmd if $ACTION=add, *cmd in all cases
  12.  
  13. # Support module loading on hotplug
  14. #$MODALIAS=.* root:root 0660 @/bin/busybox modprobe "$MODALIAS"
  15.  
  16. null root:root 0666
  17. zero root:root 0666
  18. full root:root 0666
  19. random root:root 0666
  20. urandom root:root 0444
  21. cpu_dma_latency root:root 0660
  22. initctl root:root 0600
  23. ircomm[0-9].* root:root 0660
  24. kmem root:root 0640
  25. kmsg root:root 0660
  26. log root:root 0666
  27. loop[0-9].* root:root 0640
  28. mem root:root 0640
  29. network_latency root:root 0660
  30. network_throughput root:root 0660
  31. port root:root 0640
  32. ptmx root:root 0666
  33. ram[0-9].* root:root 0640
  34. vcs.* root:root 0660
  35.  
  36. rtc0 root:root 0666 =misc/rtc
  37.  
  38. tun[0-9]* root:root 0640 =net/
  39.  
  40. pcm.* root:root 0660 =snd/
  41. control.* root:root 0660 =snd/
  42. timer root:root 0660 =snd/
  43.  
  44. i2c-([0-9]) root:root 0660 >i2c/%1
  45.  
  46. # Console device
  47. console root:tty 0600
  48.  
  49. # TTY devices
  50. tty root:root 0666
  51. tty.* root:root 0620
  52.  
  53. # DVB devices
  54. dvb([0-9])\.(.*)([0-9]) root:root 0660 >dvb/adapter%1/%2%3
  55.  
  56. # Input layer
  57. event.* root:root 0640 =input/
  58. mice root:root 0640 =input/
  59. mouse.* root:root 0640 =input/
  60.  
  61. fb([0-2]) root:root 0660 >fb/%1
  62.  
  63. lcd0 root:root 0660 =dbox/lcd0
  64. oled0 root:root 0660 =dbox/oled0
  65. dboxlcd root:root 0660 =dbox/lcd0
  66. pvr root:root 0660 =misc/pvr
  67. vtuner([0-9]) root:root 0660 =misc/
  68. fp0 root:root 0660 =dbox/fp0
  69.  
  70. # USB devices
  71. #usbdev.* root:root 0660 */lib/mdev/usb/mdev-usb
  72. [0-3]-.*:1.0 root:root 0660 */lib/mdev/usb/mdev-usb
  73.  
  74. # Mass-storage devices
  75. [hs]d[a-z][0-9]? root:root 0664 */lib/mdev/fs/mdev-mount
  76. # Disc devices
  77. sr[0-9] root:root 0664 */lib/mdev/fs/mdev-mount
  78. # Memory cards / eMMC-Partitions
  79. mmcblk0p1 root:root 0664 @mount -t auto /dev/$MDEV /boot 2>&1 >/dev/null
  80. mmcblk[0-9]p[0-9] root:root 0664 */lib/mdev/fs/mdev-mmcblk
  81.  
  82. # WLAN devices
  83. ra[0-9]* root:root 0644 */lib/mdev/net/mdev-wlan
  84. rausb[0-9]* root:root 0644 */lib/mdev/net/mdev-wlan
  85. wlan[0-9]* root:root 0644 */lib/mdev/net/mdev-wlan
  86.  
  87. # Block devices: group -> disk
  88. mtdblock([0-9]) root:root 0660 >mtdblock/%1
  89.  
  90. # Double up flash characters devices
  91. mtd([0-9]) root:root 0660 >mtd/%1
  92. mtd([0-9])+ro root:root 0600
  93.  
  94. # Log all other devices. Right now useful only for debuging.
  95. .* root:root 0600 */lib/mdev/common/mdev-log-only
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement