LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   symlinking /dev/modem (https://www.linuxquestions.org/questions/slackware-14/symlinking-dev-modem-66460/)

naesyllek 06-18-2003 06:53 PM

symlinking /dev/modem
 
hi :)

i recently obtained slackware-live which i'm using as an aid to make the transition from m$ to linux. using it @ college on the local network to access the net works fine as an ip address is assigned via DHCP, the only manual entry i make is the gateway address of the proxy server within netscape browser.

when connecting to net @ home via dialup the modem cannot be detected. further investigation revealed that the symlink appears to be pointing to wrong device. how do i change the symlink? i've tried ln -sf /dev/modem /dev/ttyS0 (which is same setting on RH8), but i get an error telling me that the link already exists. do i need to remove the original symlink and create another?

cheers

phektus 06-18-2003 07:27 PM

well i also get the same problem but what i do is backup(rename) the old link and try a new one. but i know there is an option for ln to overwrite. well, that should work for me, i just hope to you too.

just don't erase the old link to be sure

kendo 06-18-2003 10:39 PM

Check permissions on the link and make sure they are the same as user.

naesyllek 06-19-2003 06:17 AM

hi thanks for the replies,

i've checked the permission, which is root and i'm logged in as root so should be no problems there.

i understand that the -f option in ln forces/over-rides any previous link.

cheers

whansard 06-19-2003 06:42 AM

the name of the softlink is the second argument, not
the first.
it should be ln -s /dev/ttyS0 /dev/modem

naesyllek 06-19-2003 06:54 AM

hi thanks for the advice, it worked :) i feel so stupid now for entering the command wrong :D
cheers

whansard 06-19-2003 07:22 AM

i type that command wrong more often then right.


All times are GMT -5. The time now is 08:35 PM.