Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
unwanted /dev/modem directory
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
»Q«
n00b
n00b


Joined: 29 Dec 2003
Posts: 2

PostPosted: Sun Jan 04, 2004 10:40 pm    Post subject: unwanted /dev/modem directory Reply with quote

I'm a newbie setting up a 2.4.22-r2 system.

Each time I reboot, an empty /dev/modem directory is created. As soon as I rmdir it, devfsd symlinks /dev/modem to /dev/tts/4 and all is well. It's just an annoyance to have to rmdir /dev/modem every time I boot, and I'd like to know what is causing it to be created in the first place. Any guidance would be much appreciated.
_________________
»Q«
Back to top
View user's profile Send private message
hifi
Apprentice
Apprentice


Joined: 17 Jul 2002
Posts: 184
Location: Graz

PostPosted: Mon Jan 05, 2004 9:51 am    Post subject: Re: unwanted /dev/modem directory Reply with quote

»Q« wrote:
I'm a newbie setting up a 2.4.22-r2 system.

Each time I reboot, an empty /dev/modem directory is created. As soon as I rmdir it, devfsd symlinks /dev/modem to /dev/tts/4 and all is well. It's just an annoyance to have to rmdir /dev/modem every time I boot, and I'd like to know what is causing it to be created in the first place. Any guidance would be much appreciated.


guidance ...
Why does it annoy you, leaf it allone ......
It won't be harm
Back to top
View user's profile Send private message
fleed
l33t
l33t


Joined: 28 Aug 2002
Posts: 756
Location: London

PostPosted: Mon Jan 05, 2004 10:27 am    Post subject: Reply with quote

I think the problem he has is that it's not a symlink to the correct serial port of his modem, it's a directory instead. Maybe comb /etc/devfsd.conf for something related to /dev/modem? You could also go to /etc and do a grep -rl modem * to see if there's any config/script which does that.
Back to top
View user's profile Send private message
»Q«
n00b
n00b


Joined: 29 Dec 2003
Posts: 2

PostPosted: Mon Jan 05, 2004 5:20 pm    Post subject: Reply with quote

fleed wrote:
I think the problem he has is that it's not a symlink to the correct serial port of his modem, it's a directory instead.

Yes, that's exactly it. It's not a huge problem, but for example I can't use kppp until the directory has been removed and the symlink has been created. (Well, maybe I could, but I'd rather know what's going on than try workarounds.)

fleed wrote:
Maybe comb /etc/devfsd.conf for something related to /dev/modem?

The only stuff in devsfd.conf about the /modem is what I put there myself in hopes of solving the problem.

LOOKUP ^modem$ CFUNCTION GLOBAL mksymlink tts/4 modem
REGISTER ^tts/4$ CFUNCTION GLOBAL mksymlink $devname modem
UNREGISTER ^tts/4$ CFUNCTION GLOBAL unlink modem

Before I put that in there, I had to both "rmdir /dev/modem" and "ln -s /dev/tts/4 /dev/modem". As it is now, as soon as I remove the directory, the symlink is created automagically, by devsfd I guess. (Did I mention I am a newbie? ;)

fleed wrote:
You could also go to /etc and do a grep -rl modem * to see if there's any config/script which does that.

Here's the list grep gave me:

conf.d/net.ppp0
devfsd.conf
gconf/schemas/modemlights.schemas
gconf/gconf.xml.defaults/schemas/apps/modemlights/prefs/%gconf.xml
init.d/net.ppp0
lynx/lynx.cfg
mime-magic
mime-magic.dat

Looking in those files, I didn't see anything that might be creating the /dev/modem directory. I'll stare at them some more, and any further suggestions would be most welcome.
_________________
»Q«
Back to top
View user's profile Send private message
fleed
l33t
l33t


Joined: 28 Aug 2002
Posts: 756
Location: London

PostPosted: Mon Jan 05, 2004 5:30 pm    Post subject: Reply with quote

Sorry but I don't know where else to look. As far as I can tell that should be something to do with devfs but if devfsd.conf doesn't tell you what it is then I'm stumped. Maybe you could edit your changes to devfsd.conf so /dev/modem is rmdir'ed before creating the link?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum