source: MondoRescue/branches/3.2/mindi-busybox/examples/mdev_fat.conf

Last change on this file was 3232, checked in by Bruno Cornec, 10 years ago
  • Update mindi-busybox to 1.21.1
File size: 2.9 KB
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=remove, @cmd if $ACTION=add, *cmd in all cases
18
19# support module loading on hotplug
20$MODALIAS=.* root:root 660 @modprobe "$MODALIAS"
21
22# null may already exist; therefore ownership has to be changed with command
23null root:root 666 @chmod 666 $MDEV
24zero root:root 666
25full root:root 666
26random root:root 444
27urandom root:root 444
28hwrandom root:root 444
29grsec root:root 660
30
31kmem root:root 640
32mem root:root 640
33port root:root 640
34# console may already exist; therefore ownership has to be changed with command
35console root:tty 600 @chmod 600 $MDEV
36ptmx root:tty 666
37pty.* root:tty 660
38
39# Typical devices
40
41tty root:tty 666
42tty[0-9]* root:tty 660
43vcsa*[0-9]* root:tty 660
44ttyS[0-9]* root:uucp 660
45
46# block devices
47ram([0-9]*) root:disk 660 >rd/%1
48loop([0-9]+) root:disk 660 >loop/%1
49sd[a-z].* root:disk 660 */lib/mdev/usbdisk_link
50hd[a-z][0-9]* root:disk 660 */lib/mdev/ide_links
51md[0-9]* root:disk 660
52sr[0-9]* root:cdrom 660 @ln -sf $MDEV cdrom
53fd[0-9]* root:floppy 660
54
55# net devices
56tun[0-9]* root:root 600 =net/
57tap[0-9]* root:root 600 =net/
58
59# alsa sound devices and audio stuff
60pcm.* root:audio 660 =snd/
61control.* root:audio 660 =snd/
62midi.* root:audio 660 =snd/
63seq root:audio 660 =snd/
64timer root:audio 660 =snd/
65
66adsp root:audio 660 >sound/
67audio root:audio 660 >sound/
68dsp root:audio 660 >sound/
69mixer root:audio 660 >sound/
70sequencer.* root:audio 660 >sound/
71
72# Less typical devices
73
74# raid controllers
75cciss!(.*) root:disk 660 =cciss/%1
76ida!(.*) root:disk 660 =ida/%1
77rd!(.*) root:disk 660 =rd/%1
78
79ttyLTM[0-9] root:dialout 660 @ln -sf $MDEV modem
80ttySHSF[0-9] root:dialout 660 @ln -sf $MDEV modem
81slamr root:dialout 660 @ln -sf $MDEV slamr0
82slusb root:dialout 660 @ln -sf $MDEV slusb0
83
84fuse root:root 666
85
86# dri device
87card[0-9] root:video 660 =dri/
88
89# misc stuff
90agpgart root:root 660 >misc/
91psaux root:root 660 >misc/
92rtc root:root 664 >misc/
93
94# input stuff
95event[0-9]+ root:root 640 =input/
96mice root:root 640 =input/
97mouse[0-9] root:root 640 =input/
98ts[0-9] root:root 600 =input/
99
100# v4l stuff
101vbi[0-9] root:video 660 >v4l/
102video[0-9] root:video 660 >v4l/
103
104# dvb stuff
105dvb.* root:video 660 */lib/mdev/dvbdev
106
107# load drivers for usb devices
108usbdev[0-9].[0-9] root:root 660 */lib/mdev/usbdev
109usbdev[0-9].[0-9]_.* root:root 660
110
111# zaptel devices
112zap(.*) root:dialout 660 =zap/%1
113dahdi!(.*) root:dialout 660 =dahdi/%1
Note: See TracBrowser for help on using the repository browser.