Magellan Linux

Annotation of /trunk/mkinitrd-magellan/busybox/examples/mdev_fat.conf

Parent Directory Parent Directory | Revision Log Revision Log


Revision 984 - (hide annotations) (download)
Sun May 30 11:32:42 2010 UTC (14 years ago) by niro
File size: 2744 byte(s)
-updated to busybox-1.16.1 and enabled blkid/uuid support in default config
1 niro 984 #
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] [@|$|*cmd args...]
11     #
12     # =: move, >: move and create a symlink
13     # @|$|*: run $cmd on delete, @cmd on create, *cmd on both
14    
15     # support module loading on hotplug
16     $MODALIAS=.* root:root 660 @modprobe "$MODALIAS"
17    
18     # null may already exist; therefore ownership has to be changed with command
19     null root:root 666 @chmod 666 $MDEV
20     zero root:root 666
21     full root:root 666
22     random root:root 444
23     urandom root:root 444
24     hwrandom root:root 444
25     grsec root:root 660
26    
27     kmem root:root 640
28     mem root:root 640
29     port root:root 640
30     # console may already exist; therefore ownership has to be changed with command
31     console root:tty 600 @chmod 600 $MDEV
32     ptmx root:tty 666
33     pty.* root:tty 660
34    
35     # Typical devices
36    
37     tty root:tty 666
38     tty[0-9]* root:tty 660
39     vcsa*[0-9]* root:tty 660
40     ttyS[0-9]* root:uucp 660
41    
42     # block devices
43     ram([0-9]*) root:disk 660 >rd/%1
44     loop([0-9]+) root:disk 660 >loop/%1
45     sd[a-z].* root:disk 660 */lib/mdev/usbdisk_link
46     hd[a-z][0-9]* root:disk 660 */lib/mdev/ide_links
47     md[0-9]* root:disk 660
48     sr[0-9]* root:cdrom 660 @ln -sf $MDEV cdrom
49     fd[0-9]* root:floppy 660
50    
51     # net devices
52     -net/.* root:root 600 @nameif
53     tun[0-9]* root:root 600 =net/
54     tap[0-9]* root:root 600 =net/
55    
56     # alsa sound devices and audio stuff
57     pcm.* root:audio 660 =snd/
58     control.* root:audio 660 =snd/
59     midi.* root:audio 660 =snd/
60     seq root:audio 660 =snd/
61     timer root:audio 660 =snd/
62    
63     adsp root:audio 660 >sound/
64     audio root:audio 660 >sound/
65     dsp root:audio 660 >sound/
66     mixer root:audio 660 >sound/
67     sequencer.* root:audio 660 >sound/
68    
69     # Less typical devices
70    
71     # raid controllers
72     cciss!(.*) root:disk 660 =cciss/%1
73     ida!(.*) root:disk 660 =ida/%1
74     rd!(.*) root:disk 660 =rd/%1
75    
76     ttyLTM[0-9] root:dialout 660 @ln -sf $MDEV modem
77     ttySHSF[0-9] root:dialout 660 @ln -sf $MDEV modem
78     slamr root:dialout 660 @ln -sf $MDEV slamr0
79     slusb root:dialout 660 @ln -sf $MDEV slusb0
80    
81     fuse root:root 666
82    
83     # dri device
84     card[0-9] root:video 660 =dri/
85    
86     # misc stuff
87     agpgart root:root 660 >misc/
88     psaux root:root 660 >misc/
89     rtc root:root 664 >misc/
90    
91     # input stuff
92     event[0-9]+ root:root 640 =input/
93     mice root:root 640 =input/
94     mouse[0-9] root:root 640 =input/
95     ts[0-9] root:root 600 =input/
96    
97     # v4l stuff
98     vbi[0-9] root:video 660 >v4l/
99     video[0-9] root:video 660 >v4l/
100    
101     # dvb stuff
102     dvb.* root:video 660 */lib/mdev/dvbdev
103    
104     # load drivers for usb devices
105     usbdev[0-9].[0-9] root:root 660 */lib/mdev/usbdev
106     usbdev[0-9].[0-9]_.* root:root 660
107    
108     # zaptel devices
109     zap(.*) root:dialout 660 =zap/%1
110     dahdi!(.*) root:dialout 660 =dahdi/%1