LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 12-05-2012, 03:35 PM   #1
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 4,442

Rep: Reputation: 76
Link /dev/mouse -> /dev/ttyS0 undone at reboot.


Hi:

I have
Code:
$ ls -l /dev/mouse
lrwxrwxrwx 1 root root 10 2012-12-05 11:33 /dev/mouse -> input/mice
$
I do
Code:
$ rm /dev/mouse
$ ln -s /dev/ttyS0 /dev/mouse
$ ls -l /dev/mouse
lrwxrwxrwx 1 root root 10 2012-12-05 11:33 /dev/mouse -> ttyS0
$
Now I reboot. The result is
Code:
$ ls -l /dev/mouse
lrwxrwxrwx 1 root root 10 2012-12-05 11:33 /dev/mouse -> input/mice
$
What is undoing the link? It happens at boot time.

kernel 2.6.21.5, Slackware 12.0
 
Old 12-05-2012, 04:29 PM   #2
ljb643
Member
 
Registered: Nov 2003
Posts: 526

Rep: Reputation: Disabled
The whole /dev tree is maintained by the udev system, and you can't do anything to it directly that will persist across reboots. You must use udev rules.

The /dev/mouse link is created by the rule /lib/udev/rules.d/40-slackware.rules
 
1 members found this post helpful.
Old 12-05-2012, 08:54 PM   #3
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 4,442

Original Poster
Rep: Reputation: 76
I see. However I do not change the link myself but I use pkgtool>Setup>mouse. After exiting pkgtool, /dev/mouse is pointing to /dev/ttyS0. If now, rebooting causes a udev rule to undo the link, then what is the use of pkgtool?
 
Old 12-06-2012, 02:50 PM   #4
ljb643
Member
 
Registered: Nov 2003
Posts: 526

Rep: Reputation: Disabled
pkgtool is useful for installing and removing packages. pkgtool can also run setup scripts. One of those setup scripts is setup.mouse, which (as you have discovered) seems to be obsolete and should have been removed from Slackware when udev was introduced. (But this is a problem with the "gpm" package in slackware, not with pkgtool itself.)
 
Old 12-07-2012, 05:37 PM   #5
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 4,442

Original Poster
Rep: Reputation: 76
OK. Well, what I did to have mouse in the text consoles was to replace, in /etc/rc.d/rc.gpm, the line '/usr/sbin/gpm -m /dev/mouse -t ms3' with '/usr/sbin/gpm -m /dev/ttyS0 -t ms3'.

In this way I don't mind where /dev/mouse points to.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
pseudo terminals: /dev/ptmx <-> /dev/pts/ vs. /dev/ptyp <-> /dev/ttyp rtspitz Linux - Software 2 12-02-2011 02:07 PM
link to /dev/mouse changed on reboot rwcooper Slackware 2 07-04-2009 06:58 PM
reboot deletes /dev/modem link cch2cch Linux - Networking 2 08-23-2005 03:05 PM
ln: creating symbolic link `/dev/dvd' to `/dev/hdc': Permission denied qazwsx27 Fedora 3 06-14-2005 02:09 PM
symbolic link: /dev/sound to /proc/asound/dev otterit Linux - General 3 08-08-2002 05:33 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 11:14 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration