From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sam Halliday Date: Thu, 08 Jul 2004 21:13:30 +0000 Subject: mouse symlinks Message-Id: <20040708221330.455a578a@localhost> MIME-Version: 1 Content-Type: multipart/mixed; boundary="Signature=_Thu__8_Jul_2004_22_13_30_+0100_ewQ.rhYlIWBcH+Wf" List-Id: To: linux-hotplug@vger.kernel.org --Signature=_Thu__8_Jul_2004_22_13_30_+0100_ewQ.rhYlIWBcH+Wf Content-Type: text/plain; charset=US-ASCII Content-Disposition: inline Content-Transfer-Encoding: 7bit hi there, i noticed there is no users mailing list, so please excuse me posting to the devel list; but there is no alternative. what i wish to set up is a system whereby i have a symlink in /dev which points to my preferred mouse device. when my usb mouse is plugged in, i would like it pointed to it... but when unplugged, it should point to the machine's built in touchpad. i have (almost successfully) set up a udev rule which creates a symlink called /dev/usbmouse which will always point to the usbmouse when it is plugged in (the problem with /dev/input/mouseX is that X increments every time it is unplugged and reconnected). i was referred here from the debian-users list as the general concensus was that udev could not have the link pointed to the touchpad when the usbmouse was not plugged in, and that hotplug could probably help me there. any help is appreciated. 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/ --Signature=_Thu__8_Jul_2004_22_13_30_+0100_ewQ.rhYlIWBcH+Wf Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) iD8DBQFA7bj6h5Q4qVL9G8kRAgIvAJ9L6KqXFaIzE9pxYjafH89F8lvQKgCfUj4D LaFgEZA97+izQ0XGwfYWuPk= =l89a -----END PGP SIGNATURE----- --Signature=_Thu__8_Jul_2004_22_13_30_+0100_ewQ.rhYlIWBcH+Wf-- ------------------------------------------------------- This SF.Net email sponsored by Black Hat Briefings & Training. Attend Black Hat Briefings & Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com _______________________________________________ Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net Linux-hotplug-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel