VectorLinux
October 24, 2014, 04:19:35 pm *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Visit our home page for VL info. To search the old message board go to http://vectorlinux.com/forum1. The first VL forum is temporarily offline until we can find a host for it. Thanks for your patience.
 
Now powered by KnowledgeDex.
   Home   Help Search Login Register  
Please support VectorLinux!
Pages: [1]
  Print  
Author Topic: FIXED: /dev/modem symlink gets hijacked?!  (Read 1560 times)
ernie
Member
*
Posts: 2


« on: August 23, 2007, 09:27:01 pm »

I make the

'sudo ln -s /dev/ttyACM0 /dev/modem'

And then I can use dialup.  But everytime I restart the PC, the symlink changes to /dev/ttyS0.  What causes this?
« Last Edit: August 24, 2007, 03:09:24 pm by ernie » Logged
ernie
Member
*
Posts: 2


« Reply #1 on: August 24, 2007, 03:15:52 pm »

I'm still not sure what was 'hijacking' the symlink, but I've got a fix by adding these lines to /etc/udev/rules.d/udev.rules:

# Motorola USB cell modem
KERNEL=="ttyACM0",      NAME="%k", SYMLINK="modem", GROUP="tty"

Now the symlink /dev/modem will point to /dev/ttyACM0 even after a restart.  Tried this method after reading the info in:

http://www.linuxformat.co.uk/pdfs/LXF66.tut_udev.pdf

Not sure if this solution is proper, but it does work in this case!
Logged
rbistolfi
Packager
Vectorian
****
Posts: 2288


« Reply #2 on: August 24, 2007, 04:39:00 pm »

LOL I was investigating about your issue, I came here with the same solution. Here is my source:

http://reactivated.net/writing_udev_rules.html

Not sure if this solution is proper, but it does work in this case!

I think is the best solution. Udev itself was overwriting your symlink. The dirty solution would be add ln -s /dev/ttyACM0 /dev/modem to the end of your /etc/rc.d/rc.local, but you are more elegant than that Wink
Logged

"There is a concept which corrupts and upsets all others. I refer not to Evil, whose limited realm is that of ethics; I refer to the infinite."
Jorge Luis Borges, Avatars of the Tortoise.

--
Jumalauta!!
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!