mdev.conf 888 B

123456789101112131415161718192021222324252627282930313233343536
  1. #
  2. # This is a sample mdev.conf
  3. #
  4. # Provide user, group, and mode information for devices. If a regex matches
  5. # the device name provided by sysfs, use the appropriate user:group and mode
  6. # instead of the default 0:0 660.
  7. #
  8. # Syntax:
  9. # [-]devicename_regex user:group mode [=path]|[>path]|[!] [@|$|*cmd args...]
  10. # [-]$ENVVAR=regex user:group mode [=path]|[>path]|[!] [@|$|*cmd args...]
  11. # [-]@maj,min[-min2] user:group mode [=path]|[>path]|[!] [@|$|*cmd args...]
  12. #
  13. # [-]: do not stop on this match, continue reading mdev.conf
  14. # =: move, >: move and create a symlink
  15. # !: do not create device node
  16. # @|$|*: run@cmd if $ACTION=add, $cmd if $ACTION=remove, *cmd in all cases
  17. null 0:0 666
  18. zero 0:0 666
  19. urandom 0:0 444
  20. kmem 0:9 000
  21. mem 0:9 640
  22. port 0:9 640
  23. console 0:5 600
  24. ptmx 0:5 660
  25. tty[0-9]* 0:5 660
  26. ttyS[0-9]* 0:20 640
  27. fd[0-9]* 0:11 660
  28. sd[a-z]* 0:6 660
  29. hd[a-z]* 0:6 660