|
|
Home Linux and 3G Forum
|
|
PHARscape 3G Datacards and Linux
|
| View previous topic :: View next topic |
| Author |
Message |
lsam
Joined: 20 Oct 2006 Posts: 10

|
Posted: Mon Feb 12, 2007 9:07 am Post subject: TEC: /dev/modem and /dev/modem0 kept on being deleted |
|
|
Dear all,
As the subject reads, I have no idea why those 2 files (created by ln /dev/noz0 /dev/modem and ln /dev/noz0 /dev/modem0 respectively) would be deleted automatically whenever I restart the system.
Anyone can help out solving this problem for me please?
Thanks!
-Charles |
|
| Back to top |
|
 |
martijnv
Joined: 01 Feb 2007 Posts: 10

|
Posted: Wed Apr 11, 2007 11:43 am Post subject: Re: TEC: /dev/modem and /dev/modem0 kept on being deleted |
|
|
| lsam wrote: | Dear all,
As the subject reads, I have no idea why those 2 files (created by ln /dev/noz0 /dev/modem and ln /dev/noz0 /dev/modem0 respectively) would be deleted automatically whenever I restart the system.
Anyone can help out solving this problem for me please?
Thanks!
-Charles |
This is probably because your /dev directory is re-created by udev each time you boot (udev is a daemon which listens to the kernel, and creates /dev/* device files when devices are detected).
You can solve it by either modifying the udev configuration (/etc/udev *) and make udev create /dev/modem and /dev/modem0 for you each time /dev/noz0 is created. This is the least 'hackish' solution, but it requires you to find out how the udev config files work. Or you can solve it by recreating your symlink from a startup script. I have the following in my /etc/rc.local (ubunto 6.10)
---------snip-----------------------------
#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.
ln -s /dev/noz0 /dev/modem
exit 0
-------------snip--------------------
This is a bit more 'hackish' since /dev/modem will not appear/disappear when you insert/remove the card. This is not a problem though, for it works fine. |
|
| Back to top |
|
 |
Paul Site Admin
Joined: 08 Oct 2004 Posts: 505 Location: UK and Belgium

|
|
| Back to top |
|
 |
lsam
Joined: 20 Oct 2006 Posts: 10

|
Posted: Fri Jun 15, 2007 2:24 pm Post subject: TEC: Thanks ... |
|
|
Dear both of you,
Thanks for your suggestions. I will try that now.
-Charles |
|
| Back to top |
|
 |
|
|
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 You cannot attach files in this forum You can download files in this forum
|
|
|
|
|
|