Contents of /trunk/magellan-initscripts/etc/devfsd.conf
Parent Directory | Revision Log
Revision 3 -
(show annotations)
(download)
Mon Dec 13 22:52:07 2004 UTC (19 years, 10 months ago) by niro
File size: 3792 byte(s)
Mon Dec 13 22:52:07 2004 UTC (19 years, 10 months ago) by niro
File size: 3792 byte(s)
This commit was generated by cvs2svn to compensate for changes in r2, which included commits to RCS files with non-trunk default branches.
1 | # Sample /etc/devfsd.conf configuration file. |
2 | # Richard Gooch <rgooch@atnf.csiro.au> 17-FEB-2002 |
3 | # |
4 | # Enable full compatibility mode for old device names. You may comment these |
5 | # out if you don't use the old device names. Make sure you know what you're |
6 | # doing! |
7 | REGISTER .* MKOLDCOMPAT |
8 | UNREGISTER .* RMOLDCOMPAT |
9 | |
10 | # You may comment out the above and uncomment the following if you've |
11 | # configured your system to use the original "new" devfs names or the really |
12 | # new names |
13 | #REGISTER ^vc/ MKOLDCOMPAT |
14 | #UNREGISTER ^vc/ RMOLDCOMPAT |
15 | #REGISTER ^pty/ MKOLDCOMPAT |
16 | #UNREGISTER ^pty/ RMOLDCOMPAT |
17 | #REGISTER ^misc/ MKOLDCOMPAT |
18 | #UNREGISTER ^misc/ RMOLDCOMPAT |
19 | |
20 | # You may comment these out if you don't use the original "new" names |
21 | REGISTER .* MKNEWCOMPAT |
22 | UNREGISTER .* RMNEWCOMPAT |
23 | |
24 | # Enable module autoloading. You may comment this out if you don't use |
25 | # autoloading |
26 | LOOKUP .* MODLOAD |
27 | |
28 | # Uncomment the following if you want to set the group to "tty" for the |
29 | # pseudo-tty devices. This is necessary so that mesg(1) can later be used to |
30 | # enable/disable talk requests and wall(1) messages. |
31 | #REGISTER ^pty/s.* PERMISSIONS -1.tty 0600 |
32 | #REGISTER ^pts/.* PERMISSIONS -1.tty 0600 |
33 | |
34 | # |
35 | # Uncomment this if you want permissions to be saved and restored |
36 | # Do not do this for pseudo-terminal devices |
37 | REGISTER ^pt[sy] IGNORE |
38 | CREATE ^pt[sy] IGNORE |
39 | CHANGE ^pt[sy] IGNORE |
40 | DELETE ^pt[sy] IGNORE |
41 | REGISTER .* COPY /lib/dev-state/$devname $devpath |
42 | CREATE .* COPY $devpath /lib/dev-state/$devname |
43 | CHANGE .* COPY $devpath /lib/dev-state/$devname |
44 | DELETE .* CFUNCTION GLOBAL unlink /lib/dev-state/$devname |
45 | RESTORE /lib/dev-state |
46 | |
47 | |
48 | # Uncomment this if you want the old /dev/cdrom symlink |
49 | LOOKUP ^cdrom$ CFUNCTION GLOBAL mksymlink cdroms/cdrom0 cdrom |
50 | REGISTER ^cdroms/cdrom0$ CFUNCTION GLOBAL mksymlink $devname cdrom |
51 | UNREGISTER ^cdroms/cdrom0$ CFUNCTION GLOBAL unlink cdrom |
52 | |
53 | |
54 | # ALSA/OSS stuff |
55 | # Comment/change these if you want to change the permissions on |
56 | # the audio devices |
57 | LOOKUP snd MODLOAD ACTION snd |
58 | LOOKUP dsp MODLOAD |
59 | LOOKUP mixer MODLOAD |
60 | LOOKUP midi MODLOAD |
61 | REGISTER sound/.* PERMISSIONS root.audio 660 |
62 | REGISTER snd/.* PERMISSIONS root.audio 660 |
63 | |
64 | |
65 | # Uncomment this to let PAM manage devfs |
66 | #REGISTER .* CFUNCTION /lib/security/pam_console_apply_devfsd.so pam_console_apply_single $devpath |
67 | |
68 | # Give the cdrw group write permissions to /dev/sg0 |
69 | # This is done to have non root user use the burner (scan the scsi bus) |
70 | REGISTER ^scsi/host.*/bus.*/target.*/lun.*/generic PERMISSIONS root.cdrw 660 |
71 | |
72 | # Create /dev/mouse |
73 | LOOKUP ^mouse$ CFUNCTION GLOBAL mksymlink misc/psaux mouse |
74 | REGISTER ^misc/psaux$ CFUNCTION GLOBAL mksymlink $devname mouse |
75 | UNREGISTER ^misc/psaux$ CFUNCTION GLOBAL unlink mouse |
76 | |
77 | |
78 | # Uncomment this to manage USB mouse |
79 | REGISTER ^input/mouse0$ CFUNCTION GLOBAL mksymlink $devname usbmouse |
80 | UNREGISTER ^input/mouse0$ CFUNCTION GLOBAL unlink usbmouse |
81 | REGISTER ^input/mice$ CFUNCTION GLOBAL mksymlink $devname usbmouse |
82 | UNREGISTER ^input/mice$ CFUNCTION GLOBAL unlink usbmouse |
83 | |
84 | # If you have removable media and want to force media revalidation when looking |
85 | # up new or old compatibility names, uncomment the following lines |
86 | # SCSI NEWCOMPAT /dev/sd/* names |
87 | #LOOKUP ^(sd/c[0-9]+b[0-9]+t[0-9]+u[0-9]+)p[0-9]+$ EXECUTE /bin/dd if=$mntpnt/\1 of=/dev/null count=1 |
88 | # SCSI OLDCOMPAT /dev/sd?? names |
89 | #LOOKUP ^(sd[a-z]+)[0-9]+$ EXECUTE /bin/dd if=$mntpnt/\1 of=/dev/null count=1 |
90 | # IDE NEWCOMPAT /dev/ide/hd/* names |
91 | #LOOKUP ^(ide/hd/c[0-9]+b[0-9]+t[0-9]+u[0-9]+)p[0-9]+$ EXECUTE /bin/dd if=$mntpnt/\1 of=/dev/null count=1 |
92 | # IDE OLDCOMPAT /dev/hd?? names |
93 | #LOOKUP ^(hd[a-z])[0-9]+$ EXECUTE /bin/dd if=$mntpnt/\1 of=/dev/null count=1 |
Properties
Name | Value |
---|---|
svn:executable | * |