xfs
[Top] [All Lists]

/dev/mouse /dev/cdrom (was: PCMCIA and devfs)

To: linux-xfs@xxxxxxxxxxx
Subject: /dev/mouse /dev/cdrom (was: PCMCIA and devfs)
From: "Manfred W. Baumstark" <maba@xxxxxxxxxxxxxxxxxxx>
Date: Mon, 19 Feb 2001 22:52:06 +0100
Organization: Medizinische Universitaetsklink Freiburg
References: <3A8BE135.9294EBC7@ukl.uni-freiburg.de>
Sender: owner-linux-xfs@xxxxxxxxxxx
Now I can answer my own questions, maybe this saves other newbies some
hours...

> 
> No device entry is generated for my ide-cd. If I manually execute "modprobe
> ide-cd" I get /dev/cdroms/cdrom* and /dev/hdb but not /dev/cdrom. How can I
> generate this entry?
> 
> The same with /dev/mouse. I would like to have a symlink /dev/mouse -->
> /dev/psaux.
> 
I load the cdrom modules by "modprobe ide-cd" in rc.local (not elegant, but
works). 
To get your favourate links in /dev you have to add lines like this to
/etc/devfsd.conf:

REGISTER     mydir/mydev  CFUNCTION GLOBAL symlink $devname mydev
UNREGISTER   mydir/mydev  CFUNCTION GLOBAL unlink  mydev

Examples:

REGISTER        ide/host0/bus0/target1/lun0/cd  CFUNCTION GLOBAL symlink 
$devname
cdrom
UNREGISTER      ide/host0/bus0/target1/lun0/cd  CFUNCTION GLOBAL unlink cdrom

REGISTER        misc/psaux      CFUNCTION GLOBAL symlink $devname mouse
UNREGISTER      misc/psaux      CFUNCTION GLOBAL unlink mouse

I think mydir/mydev has to be the actual device not a link, i.e.
cdroms/cdrom0 did not work.

Manfred

Attachment: maba.vcf
Description: Card for Manfred W. Baumstark

<Prev in Thread] Current Thread [Next in Thread>