Magellan Linux

Diff of /trunk/busybox/mdev.conf

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1187 by niro, Thu Oct 21 19:49:32 2010 UTC revision 1233 by niro, Fri Dec 10 22:49:20 2010 UTC
# Line 1  Line 1 
1  null 0:0 0666  # /etc/mdev.conf
2  zero 0:0 0666  #
3    # Provide user, group, and mode information for devices.  If a regex matches
4  urandom 0:0 0444  # the device name provided by sysfs, use the appropriate user:group and mode
5    # instead of the default 0:0 660.
6  console 0:4 0600  #
7    # Syntax:
8  kmem 0:3 0640  # [-]devicename_regex user:group mode [>|=path] [@|$|*cmd args...]
9  mem 0:3 0640  #
10  port 0:3 0640  # =: move, >: move and create a symlink
11    # @|$|*: run $cmd on delete, @cmd on create, *cmd on both
12  ptmx 0:5 0666  
13  tun 0:0 0640 =net/  
14    # support module loading on hotplug
15  tty 0:4 0666  $MODALIAS=.* root:root 0660 @modprobe "$MODALIAS"
16  pty[pqrstuvwxyzabcdef][0123456789abcdef] 0:4 0660  
17  tty[pqrstuvwxyzabcdef][0123456789abcdef] 0:4 0660  # null may already exist; therefore ownership has to be changed with command
18  tty[0-9] 0:4 0660  null root:root 0666 @chmod 0666 $MDEV
19  tty[0-9][0-9] 0:4 0660  zero root:root 0666
20    
21  ttyS[0-9] 0:4 0660  random root:root 0666
22  ttyUSB[0-9]* 0:4 0660  urandom root:root 0666
23  lp[0-9]* 0:9 0660  hwrandom root:root 0444
24    
25  sd[a-z][0-9]* 0:8 0660  # console may already exist; therefore ownership has to be changed with command
26  hd[a-z][0-9]* 0:8 0660  console root:tty 0600 @chmod 0600 $MDEV
27    
28    kmem root:kmem 0640
29    mem root:kmem 0640
30    port root:kmem 0640
31    
32    ptmx root:tape 0666
33    pty.* root:tty 0660
34    
35    tty root:tty 0666
36    tty[0-9]* root:tty 0660
37    vcsa*[0-9]* root:tty 0660
38    
39    ttyS[0-9] root:dialout 0660
40    ttyUSB[0-9]* root:dialout 0660
41    lp[0-9]* root:lp 0660
42    
43    # block devices
44    ram([0-9]*) root:disk 0660 >rd/%1
45    loop([0-9]+) root:disk 0660 >loop/%1
46    sd[a-z].* root:disk 0660 */lib/mdev/usbdisk_link
47    hd[a-z][0-9]* root:disk 0660 */lib/mdev/ide_links
48    md[0-9]* root:disk 0660
49    sr[0-9]* root:cdrom 0660 @ln -sf $MDEV cdrom
50    fd[0-9]* root:floppy 0660
51    
52    # net devices
53    -net/.* root:root 0640 @nameif
54    tun root:root 0640 =net/
55    tap root:root 0640 =net/
56    
57    # sound devices
58    pcm.* root:audio 0660 =snd/
59    control.* root:audio 0660 =snd/
60    midi.* root:audio 0660 =snd/
61    seq root:audio 0660 =snd/
62    timer root:audio 0660 =snd/
63    
64    adsp root:audio 0660 >sound/
65    audio root:audio 0660 >sound/
66    dso root:audio 0660 >sound/
67    mixer root:audio 0660 >sound/
68    sequencer.* root:audio 0660 >sound/
69    
70    # video devices
71    agpgart root:root 0660 >misc/
72    card[0-9] root:video 0660 =dri/
73    vbi[0-9] root:video 0660 >v4l/
74    video[0-9] root:video 0660 >v4l/
75    dvb.* root:video 0660 */lib/mdev/dvbdev
76    
77    # input devices
78    psaux root:root 0660 >misc/
79    event[0-9]+ root:root 0640 =input/
80    mice root:root 0640 =input/
81    mouse[0-9] root:root 0640 =input/
82    ts[0-9] root:root 0640 =input/
83    
84    # usb devices
85    usbdev[0-9].[0-9] root:root 0660 */lib/mdev/usbdev
86    usbdev[0-9].[0-9]_.* root:root 0660
87    
88    
89    # other devices
90    fuse root:root 0660
91    rtc root:root 0660 >misc/

Legend:
Removed from v.1187  
changed lines
  Added in v.1233