Annotation of /trunk/busybox/mdev.conf
Parent Directory | Revision Log
Revision 1233 -
(hide annotations)
(download)
Fri Dec 10 22:49:20 2010 UTC (13 years, 9 months ago) by niro
File size: 2296 byte(s)
Fri Dec 10 22:49:20 2010 UTC (13 years, 9 months ago) by niro
File size: 2296 byte(s)
-tuned mdev.conf and process uevents (need initscripts with trigger_uevent support) -added mdev helpers -added rc script for syslogd, needed by dropbear
1 | niro | 1233 | # /etc/mdev.conf |
2 | # | ||
3 | # Provide user, group, and mode information for devices. If a regex matches | ||
4 | # the device name provided by sysfs, use the appropriate user:group and mode | ||
5 | # instead of the default 0:0 660. | ||
6 | # | ||
7 | # Syntax: | ||
8 | # [-]devicename_regex user:group mode [>|=path] [@|$|*cmd args...] | ||
9 | # | ||
10 | # =: move, >: move and create a symlink | ||
11 | # @|$|*: run $cmd on delete, @cmd on create, *cmd on both | ||
12 | niro | 1187 | |
13 | |||
14 | niro | 1233 | # support module loading on hotplug |
15 | $MODALIAS=.* root:root 0660 @modprobe "$MODALIAS" | ||
16 | niro | 1187 | |
17 | niro | 1233 | # null may already exist; therefore ownership has to be changed with command |
18 | null root:root 0666 @chmod 0666 $MDEV | ||
19 | zero root:root 0666 | ||
20 | niro | 1187 | |
21 | niro | 1233 | random root:root 0666 |
22 | urandom root:root 0666 | ||
23 | hwrandom root:root 0444 | ||
24 | niro | 1187 | |
25 | niro | 1233 | # console may already exist; therefore ownership has to be changed with command |
26 | console root:tty 0600 @chmod 0600 $MDEV | ||
27 | niro | 1187 | |
28 | niro | 1233 | kmem root:kmem 0640 |
29 | mem root:kmem 0640 | ||
30 | port root:kmem 0640 | ||
31 | niro | 1187 | |
32 | niro | 1233 | 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/ |