On Tue, 17 Apr 2001, Eric Sandeen wrote:
> > Has anyone else seen this/know if this is an XFS or Seawolf problem?
>
> Otherwise, add these lines to the bottom of your devfsd.conf file, and
> see if it works some magic for you.
>
> # Handle /dev/mouse...
> # This assumes that something else (initscripts) will load mouse modules
> # If input/mice gets registered, link /dev/mouse to it:
> REGISTER input/mice EXECUTE /bin/ln -sf input/mice mouse
> # Lkewise for misc/psaux:
> REGISTER misc/psaux EXECUTE /bin/ln -sf misc/psaux mouse
> # If we unregister the usb mouse, then we probably want /dev/mouse to be
> psaux
> UNREGISTER input/mice EXECUTE /bin/ln -sf misc/psaux mouse
>
> # ...and /dev/cdrom
> # In case no cdrom modules loaded, point link over to /dev/cdroms/cdrom0
> LOOKUP cdrom EXECUTE /bin/ln -sf cdroms/cdrom0 cdrom
> # Similarly, if the module loaded, create the /dev/cdrom link
> REGISTER cdroms/cdrom0 EXECUTE /bin/ln -sf cdroms/cdrom0 cdrom
> # Remove link when cdrom modules are unloaded
> UNREGISTER cdroms/cdrom0 EXECUTE /bin/rm -f cdrom
>
> -Eric
Are you sure this is right, Eric? I think REGISTER and UNREGISTER only
work on actual devices created by devfs when a new device is registered or
unregistered. /dev/cdroms/* are links to things in the /dev/ide and
/dev/scsi trees. If you want to create a symlink when another symlink is
created (i.e. make the /dev/cdrom symlink at the same time the
/dev/cdroms/cdrom0 symlink is created) I think you have to use the CREATE
keyword.
--
Russ Ingram
Gargoyle Computer Consulting
(307)742-1361
www.gargoylecc.com
|