LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   link to /dev/mouse changed on reboot (http://www.linuxquestions.org/questions/slackware-14/link-to-dev-mouse-changed-on-reboot-737749/)

rwcooper 07-04-2009 03:53 PM

link to /dev/mouse changed on reboot
 
Hi,

I am running Slackware 12.2 on an old computer with a serial mouse. After each reboot /dev/mouse is a link to input/mice even though I change it to being a link to /dev/ttyS0. Can anyone tell me what I need to do to ensure that /dev/mouse remains a link to /dev/ttyS0 across reboots?

Thanks,
Randy

Woodsman 07-04-2009 06:30 PM

I think the problem is caused by two udev rules:

/lib/udev/rules.d/40-slackware.rules:
Code:

KERNEL=="mice",  SYMLINK+="mouse"
/lib/udev/rules.d/50-udev-default.rules:
Code:

KERNEL=="mouse*|mice|event*", NAME="input/%k", MODE="0640"
I won't pretend to understand writing new udev rules and I've hacked only a few on my own. Do know that you want to add your own udev rule in /etc/udev/rules.d and not in /lib/udev/rules.d.

Perhaps that is sufficient information to help you get started, but I'm sure somebody here will help you write a new rule.

Uncle_Theodore 07-04-2009 06:58 PM

I /think/ the rule you mentined should be changed to
Code:

KERNEL="tts/%n" SYMLINK="mouse"
But I'm not sure. I don't even have such a rule in my system.
Here's the general tutorial
http://www.reactivated.net/writing_udev_rules.html


All times are GMT -5. The time now is 09:28 AM.