diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2009-11-07 04:00:03 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2009-11-07 04:00:03 +0100 |
commit | 6e8e666bd9d62772713af7f06ce9495d21d51f4e (patch) | |
tree | 7a68d5d1a404bbbd730e3ba58e7a73640473e6ab /examples/mdev_fat.conf | |
parent | 1612c757d0cd81629ce78d21532acd425a17db8a (diff) | |
download | busybox-w32-6e8e666bd9d62772713af7f06ce9495d21d51f4e.tar.gz busybox-w32-6e8e666bd9d62772713af7f06ce9495d21d51f4e.tar.bz2 busybox-w32-6e8e666bd9d62772713af7f06ce9495d21d51f4e.zip |
adding examples/mdev_fat.conf
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'examples/mdev_fat.conf')
-rw-r--r-- | examples/mdev_fat.conf | 105 |
1 files changed, 105 insertions, 0 deletions
diff --git a/examples/mdev_fat.conf b/examples/mdev_fat.conf new file mode 100644 index 000000000..f15a1705f --- /dev/null +++ b/examples/mdev_fat.conf | |||
@@ -0,0 +1,105 @@ | |||
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] [@|$|*command args...] | ||
11 | # | ||
12 | # =: move, >: move and create a symlink | ||
13 | # @|$|*: run $cmd on delete, @cmd on create, *cmd on both | ||
14 | |||
15 | # null may already exist; therefore ownership has to be changed with command | ||
16 | null root:root 666 @chmod 666 $MDEV | ||
17 | zero root:root 666 | ||
18 | full root:root 666 | ||
19 | random root:root 666 | ||
20 | urandom root:root 444 | ||
21 | hwrandom root:root 660 | ||
22 | grsec root:root 660 | ||
23 | |||
24 | kmem root:root 640 | ||
25 | mem root:root 640 | ||
26 | port root:root 640 | ||
27 | # console may already exist; therefore ownership has to be changed with command | ||
28 | console root:tty 600 @chmod 600 $MDEV | ||
29 | ptmx root:tty 666 | ||
30 | pty.* root:tty 660 | ||
31 | |||
32 | # Typical devices | ||
33 | |||
34 | tty root:tty 666 | ||
35 | tty[0-9]* root:tty 660 | ||
36 | vcsa*[0-9]* root:tty 660 | ||
37 | ttyS[0-9]* root:uucp 660 | ||
38 | |||
39 | # block devices | ||
40 | ram([0-9]*) root:disk 660 >rd/%1 | ||
41 | loop([0-9]+) root:disk 660 >loop/%1 | ||
42 | sd[a-z].* root:disk 660 */lib/mdev/usbdisk_link | ||
43 | hd[a-z][0-9]* root:disk 660 */lib/mdev/ide_links | ||
44 | md[0-9]* root:disk 660 | ||
45 | sr[0-9]* root:cdrom 660 @ln -sf $MDEV cdrom | ||
46 | fd[0-9]* root:floppy 660 | ||
47 | |||
48 | # net devices | ||
49 | tun[0-9]* root:root 600 =net/ | ||
50 | tap[0-9]* root:root 600 =net/ | ||
51 | |||
52 | # alsa sound devices and audio stuff | ||
53 | pcm.* root:audio 660 =snd/ | ||
54 | control.* root:audio 660 =snd/ | ||
55 | midi.* root:audio 660 =snd/ | ||
56 | seq root:audio 660 =snd/ | ||
57 | timer root:audio 660 =snd/ | ||
58 | |||
59 | adsp root:audio 660 >sound/ | ||
60 | audio root:audio 660 >sound/ | ||
61 | dsp root:audio 660 >sound/ | ||
62 | mixer root:audio 660 >sound/ | ||
63 | sequencer.* root:audio 660 >sound/ | ||
64 | |||
65 | # Less typical devices | ||
66 | |||
67 | # raid controllers | ||
68 | cciss!(.*) root:disk 660 =cciss/%1 | ||
69 | ida!(.*) root:disk 660 =ida/%1 | ||
70 | rd!(.*) root:disk 660 =rd/%1 | ||
71 | |||
72 | ttyLTM[0-9] root:dialout 660 @ln -sf $MDEV modem | ||
73 | ttySHSF[0-9] root:dialout 660 @ln -sf $MDEV modem | ||
74 | slamr root:dialout 660 @ln -sf $MDEV slamr0 | ||
75 | slusb root:dialout 660 @ln -sf $MDEV slusb0 | ||
76 | fuse root:root 666 | ||
77 | |||
78 | # dri device | ||
79 | card[0-9] root:video 660 =dri/ | ||
80 | |||
81 | # misc stuff | ||
82 | agpgart root:root 660 >misc/ | ||
83 | psaux root:root 660 >misc/ | ||
84 | rtc root:root 664 >misc/ | ||
85 | |||
86 | # input stuff | ||
87 | event[0-9]+ root:root 640 =input/ | ||
88 | mice root:root 640 =input/ | ||
89 | mouse[0-9] root:root 640 =input/ | ||
90 | ts[0-9] root:root 600 =input/ | ||
91 | |||
92 | # v4l stuff | ||
93 | vbi[0-9] root:video 660 >v4l/ | ||
94 | video[0-9] root:video 660 >v4l/ | ||
95 | |||
96 | # dvb stuff | ||
97 | dvb.* root:video 660 */lib/mdev/dvbdev | ||
98 | |||
99 | # load drivers for usb devices | ||
100 | usbdev[0-9].[0-9] root:root 660 */lib/mdev/usbdev | ||
101 | usbdev[0-9].[0-9]_.* root:root 660 | ||
102 | |||
103 | # zaptel devices | ||
104 | zap(.*) root:dialout 660 =zap/%1 | ||
105 | dahdi!(.*) root:dialout 660 =dahdi/%1 | ||