John L Fjellstad wrote:
> Sam Halliday writes:
> > i would very much like to have a symlink set up by udev
> > (/dev/input/mousemain or similar) which points to the /dev/input/mouseX
> > unless it has been removed, in which case it should be pointed to
> > /dev/input/mouse1.
> >
> > unfortunately the /dev/input/mouseX devices all remain when the usb mouse is
> > unplugged and reconnected.
>
> So, construct the udev rule:
> BUS="usb", SYSFS{idProduct}="c012", SYSFS{product}="USB-PS/2 Optical Mouse",
> NAME="input/%k", SYMLINK="usbmouse"
thanks john!
however that only solves half the problem... how can i make this /dev/usbmouse
link (or whatever i call it) point to /dev/input/mouse1 (the touchpad) when the
usb mouse is not plugged in?
cheers,
Sam
--
Free High School Science Texts
http://www.nongnu.org/fhsst/
Sam's Homepages
http://fommil.homeunix.org/~samuel/
http://www.ma.hw.ac.uk/~samuel/
Attachment:
pgpi13AjPSUH1.pgp
Description: PGP signature