| 1 |
# Sample /etc/devfsd.conf configuration file. |
| 2 |
# Richard Gooch <rgooch@atnf.csiro.au> 3-JUL-2000 |
| 3 |
# |
| 4 |
# The Gentoo Linux Team - http://www.gentoo.org/ |
| 5 |
# - Many fixes, etc |
| 6 |
|
| 7 |
# Enable full compatibility mode for old device names. You may comment these |
| 8 |
# out if you don't use the old device names. Make sure you know what you're |
| 9 |
# doing! |
| 10 |
REGISTER .* MKOLDCOMPAT |
| 11 |
UNREGISTER .* RMOLDCOMPAT |
| 12 |
|
| 13 |
# You may comment out the above and uncomment the following if you've |
| 14 |
# configured your system to use the original "new" devfs names or the really |
| 15 |
# new names |
| 16 |
#REGISTER vc/.* MKOLDCOMPAT |
| 17 |
#UNREGISTER vc/.* RMOLDCOMPAT |
| 18 |
#REGISTER pty/.* MKOLDCOMPAT |
| 19 |
#UNREGISTER pty/.* RMOLDCOMPAT |
| 20 |
#REGISTER misc MKOLDCOMPAT |
| 21 |
#UNREGISTER misc RMOLDCOMPAT |
| 22 |
|
| 23 |
# You may comment these out if you don't use the original "new" names |
| 24 |
REGISTER .* MKNEWCOMPAT |
| 25 |
UNREGISTER .* RMNEWCOMPAT |
| 26 |
|
| 27 |
# Enable module autoloading. You may comment this out if you don't use |
| 28 |
# autoloading |
| 29 |
LOOKUP .* MODLOAD |
| 30 |
|
| 31 |
# Uncomment this if you want permissions to be saved and restored |
| 32 |
# NB: Do NOT change the following! |
| 33 |
# Do not do this for pseudo-terminal devices |
| 34 |
RESTORE /lib/dev-state |
| 35 |
REGISTER ^pt[sy]/.* IGNORE |
| 36 |
CHANGE ^pt[sy]/.* IGNORE |
| 37 |
CREATE ^pt[sy]/.* IGNORE |
| 38 |
REGISTER .* COPY /lib/dev-state/$devname $devpath |
| 39 |
CHANGE .* COPY $devpath /lib/dev-state/$devname |
| 40 |
CREATE .* COPY $devpath /lib/dev-state/$devname |
| 41 |
DELETE .* CFUNCTION GLOBAL unlink /lib/dev-state/$devname |
| 42 |
UNREGISTER .* CFUNCTION GLOBAL unlink /lib/dev-state/$devname |
| 43 |
|
| 44 |
# You can force default like this : |
| 45 |
# PERMISSIONS owner_and_group access_mode |
| 46 |
|
| 47 |
# ALSA/OSS stuff |
| 48 |
# Comment/change these if you want to change the permissions on |
| 49 |
# the audio devices |
| 50 |
LOOKUP snd MODLOAD ACTION snd |
| 51 |
|
| 52 |
# Give the cdrw group write permissions to /dev/sg0 |
| 53 |
# This is done to have non root user use the burner (scan the scsi bus) |
| 54 |
#REGISTER ^sg0$ PERMISSIONS root.cdrw 660 |
| 55 |
|
| 56 |
|
| 57 |
# General note for the following auto creation of symlinks: |
| 58 |
# |
| 59 |
# If you change the device that the symlink points to, |
| 60 |
# you should also remove the symlink before restarting |
| 61 |
# devfsd |
| 62 |
|
| 63 |
# Create /dev/cdrom for the first cdrom drive |
| 64 |
LOOKUP ^cdrom$ CFUNCTION GLOBAL symlink ${mntpnt}/cdroms/cdrom1 $devpath |
| 65 |
|
| 66 |
# Create /dev/dvd for the second cdrom drive |
| 67 |
# (change 'cdroms/cdrom1' to suite your setup) |
| 68 |
#LOOKUP ^dvd$ CFUNCTION GLOBAL symlink ${mntpnt}/cdroms/cdrom1 $devpath |
| 69 |
|
| 70 |
# Create /dev/cdrw for the first cdrom on the scsi bus |
| 71 |
# (change 'sr0' to suite your setup) |
| 72 |
#LOOKUP ^cdrw$ CFUNCTION GLOBAL symlink ${mntpnt}/sr0 $devpath |
| 73 |
|
| 74 |
# Create /dev/mouse so that dumb rc-script for gpm can work |
| 75 |
LOOKUP ^mouse$ CFUNCTION GLOBAL symlink ${mntpnt}/misc/psaux $devpath |
| 76 |
|
| 77 |
# devfsd.conf ends here |