You are not logged in.
Pages: 1
For those, like me, who find the new dsvfs a mixed blessing/curse, I submit the following:
HOWTO-devfsd setup
The default /etc/devfsd.conf installed by devfsd contains some comments to get people started, but it's a bit limited. Here's a commented devfsd.conf with some additional setups for alsa, cd burning and other stuff, for further information on what you can do with devfsd.conf, see the devfsd manpage:
# Sample /etc/devfsd.conf configuration file.
# Enable module autoloading.
LOOKUP .* MODLOAD
# setup alsa permissions
REGISTER ^snd/ PERMISSIONS -1.audio 0660
# setup permissions for oss audio/alsa oss emulation
REGISTER ^sound/ PERMISSIONS -1.audio 0660
# setup some symlinks for oss audio/alsa oss emulation
REGISTER ^sound/mixer$ CFUNCTION GLOBAL mksymlink $devname mixer
REGISTER ^sound/mixer$ CFUNCTION GLOBAL mksymlink $devname mixer0
UNREGISTER ^sound/mixer$ CFUNCTION GLOBAL unlink mixer
UNREGISTER ^sound/mixer$ CFUNCTION GLOBAL unlink mixer0
REGISTER ^sound/dsp$ CFUNCTION GLOBAL mksymlink $devname dsp
UNREGISTER ^sound/dsp$ CFUNCTION GLOBAL unlink dsp
REGISTER ^sound/adsp$ CFUNCTION GLOBAL mksymlink $devname dsp1
UNREGISTER ^sound/adsp$ CFUNCTION GLOBAL unlink dsp1
# setup cdrecord compatibility devices and permissions
REGISTER ^scsi/host0/bus0/target(.)/lun0/generic CFUNCTION GLOBAL mksymlink $devname sg1
REGISTER ^scsi/host0/bus0/target(.)/lun0/generic PERMISSIONS -1.burning 660
UNREGISTER ^scsi/host0/bus0/target(.)/lun0/generic CFUNCTION GLOBAL unlink sg1
# setup cdrdao device
REGISTER ^cdroms/cdrom0$ CFUNCTION GLOBAL mksymlink $devname cdrecorder
UNREGISTER ^cdroms/cdrom0$ CFUNCTION GLOBAL unlink cdrecorder
# setup apm compat device (XFree seems to need it)
REGISTER ^misc/apm_bios$ CFUNCTION GLOBAL mksymlink $devname apm_bios
UNREGISTER ^misc/apm_bios$ CFUNCTION GLOBAL unlink apm_bios
# setup rtc compat device (i use this for mplayer, don't know if anything else
# can make use of it)
REGISTER ^misc/rtc$ CFUNCTION GLOBAL mksymlink $devname rtc
REGISTER ^misc/rtc$ PERMISSIONS -1.-1 0644
UNREGISTER ^misc/rtc$ CFUNCTION GLOBAL unlink rtc
# vmware monitor symlinking, so vmware finds it
REGISTER ^misc/vmmon$ CFUNCTION GLOBAL mksymlink $devname vmmon
UNREGISTER ^misc/vmmon$ CFUNCTION GLOBAL unlink vmmon
# needed for vmware
REGISTER ^vc/(.*)$ CFUNCTION GLOBAL mksymlink $devname tty1
UNREGISTER ^vc/(.*)$ CFUNCTION GLOBAL unlink tty1
# setup video4linux compat device (thanks to rycee)
REGISTER v4l/.* PERMISSIONS -1.video 660
-- Linux! Isn't it time?
Offline
Pages: 1