LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   A /dev/modem link not persistent (http://www.linuxquestions.org/questions/slackware-14/a-dev-modem-link-not-persistent-358522/)

awl 08-30-2005 11:48 AM

A /dev/modem link not persistent
 
Well, the title says it. Ok, I have a WinModem, compiled some sources from heby.de and its working fine under /dev/ttyLTM0 . The problem is I have to make a /dev/modem soft link to ttyLTM0 each time I start the system. Where' s the catch?

-------------------------------------------------
I hereby apologize to all of you who helped me with various problems regarding Linux for not clicking the THANKS button , since I just saw it an hour ago, when I was browsing an other post, with the guy who explicitely asked for people to click that if he helps them. SORRY! :cry:

urka58 08-30-2005 11:57 AM

The problem could be "udev" if you're using 2.6 series kernel as it resets the whole device nodes sytem at each boot
If you're system is using 2.4 kernel that sounds unusual.
Can you give some additional infos about your system ?
Ciao

gbonvehi 08-30-2005 12:08 PM

A quick "hack" would be to add ln -s /dev/ttyLTM0 /dev/modem in /etc/rc.d/rc.local or just point your modem software to /dev/ttyLTM0.

awl 08-30-2005 12:24 PM

Quote:

Originally posted by urka58
The problem could be "udev" if you're using 2.6 series kernel as it resets the whole device nodes sytem at each boot
If you're system is using 2.4 kernel that sounds unusual.
Can you give some additional infos about your system ?
Ciao

yes, i am using 2.6.7 kernel. I remember even something about it in the config docs for the driver, however they do not tell much (smthg like RTFM for udev).

if there is a straightforward solution with udev thingy, please let me know. Otherwise I will use "quick hack" method : )

urka58 08-30-2005 12:38 PM

Yes, you can fix the problem quite easiy this way
Create a new file in your /etc/udev/rules.d called 01-udev.rules with a line like
KERNEL="ttyLTM[0-9]", NAME="%k", SYSFS{dev}="240:1", SYMLINK="modem"
This will set up a permanent link to /dev/ttyLTM0.
Just make sure major and minor numers of the node are correct by
udevinfo -a -p `udevinfo -q path -n /dev/ttyLTM0`
Hope this helps
Ciao

awl 08-30-2005 01:58 PM

Thanks people! (in advance since I need to reboot)


All times are GMT -5. The time now is 06:25 AM.