source: branches/3.2/mindi-busybox/examples/mdev.conf @ 3232

Last change on this file since 3232 was 3232, checked in by bruno, 5 years ago
  • Update mindi-busybox to 1.21.1
File size: 888 bytes
Line 
1#
2# This is a sample mdev.conf
3#
4
5# Provide user, group, and mode information for devices.  If a regex matches
6# the device name provided by sysfs, use the appropriate user:group and mode
7# instead of the default 0:0 660.
8#
9# Syntax:
10# [-]devicename_regex user:group mode [=path]|[>path]|[!] [@|$|*cmd args...]
11# [-]$ENVVAR=regex    user:group mode [=path]|[>path]|[!] [@|$|*cmd args...]
12# [-]@maj,min[-min2]  user:group mode [=path]|[>path]|[!] [@|$|*cmd args...]
13#
14# [-]: do not stop on this match, continue reading mdev.conf
15# =: move, >: move and create a symlink
16# !: do not create device node
17# @|$|*: run@cmd if $ACTION=add,  $cmd if $ACTION=remove, *cmd in all cases
18
19null        0:0 666
20zero        0:0 666
21urandom     0:0 444
22
23kmem        0:9 000
24mem     0:9 640
25port        0:9 640
26
27console     0:5 600
28ptmx        0:5 660
29tty[0-9]*   0:5 660
30
31ttyS[0-9]*  0:20 640
32
33fd[0-9]*    0:11 660
34
35sd[a-z]*    0:6 660
36hd[a-z]*    0:6 660
Note: See TracBrowser for help on using the repository browser.