View previous topic :: View next topic |
Author |
Message |
»Q« n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 29 Dec 2003 Posts: 2
|
Posted: Sun Jan 04, 2004 10:40 pm Post subject: unwanted /dev/modem directory |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
hifi Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/gallery/Futurama/cartoon_futurama_brainslug.gif)
Joined: 17 Jul 2002 Posts: 184 Location: Graz
|
Posted: Mon Jan 05, 2004 9:51 am Post subject: Re: unwanted /dev/modem directory |
|
|
»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 |
|
![](templates/gentoo/images/spacer.gif) |
fleed l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
![](images/avatars/1800640613415a758ba4ac3.png)
Joined: 28 Aug 2002 Posts: 756 Location: London
|
Posted: Mon Jan 05, 2004 10:27 am Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
»Q« n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 29 Dec 2003 Posts: 2
|
Posted: Mon Jan 05, 2004 5:20 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
fleed l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
![](images/avatars/1800640613415a758ba4ac3.png)
Joined: 28 Aug 2002 Posts: 756 Location: London
|
Posted: Mon Jan 05, 2004 5:30 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
|