Skip to contentSkip to conversation

UDEV and new hardware?

DISCUSSION raid517 2 participants 3 messages Oct 19, 2005 – Oct 20, 2005

lore
Share & tools
lore

raid517

author
#0 lore raw

Hi I installed a modem driver for the Intel Corporation 536EP Data Fax Modem. But in order to use it I need to create a link from it (it is called 536ep0 in /dev) to /dev/modem. I need to do this specifically so that KPPP can see it.

The only thing is that everything in /dev/ gets deleted and rebuilt each time I reboot.

I have been led to believe (rightly or wrongly) that it is udev that is responsible for this. So the question is how can I make a symlink from /dev/536ep0 to /dev/modem that will remain in place and will persist even after a reboot?

GJ

-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

#1 lore raw
Quoted 5 lines · On Wed, Oct 19, 2005 at 09:36:51PM +0000, raid517 wrote:

Hi I installed a modem driver for the Intel Corporation 536EP Data Fax Modem. But in order to use it I need to create a link from it (it is called 536ep0 in /dev) to /dev/modem. I need to do this specifically so that KPPP can see it.

Quoted 7 lines

The only thing is that everything in /dev/ gets deleted and rebuilt each time I reboot.

I have been led to believe (rightly or wrongly) that it is udev that is responsible for this. So the question is how can I make a symlink from /dev/536ep0 to /dev/modem that will remain in place and will persist even after a reboot?

Try adding:
KERNEL="536ep0", SYMLINK+="modem"

to a rules file in:
/etc/udev/rules.d/

Kay

-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

author
#2 lore raw
In reply to raid517

Thanks I will certainly give that a go - although in the end I just wrote a small bash script and had it create the symlink and then added this to my system startup scripts. This should hopefully survive and upgrades to Udev in the future too. (Although having the capacity to create persiant 'on the fly' symlinks in /dev (just as I used to be able to do) would still be neat too.

GJ

Quoted 27 lines · Kay Sievers
Quoted 5 lines · On Wed, Oct 19, 2005 at 09:36:51PM +0000, raid517 wrote:

Hi I installed a modem driver for the Intel Corporation 536EP Data Fax Modem. But in order to use it I need to create a link from it (it is called 536ep0 in /dev) to /dev/modem. I need to do this specifically so that KPPP can see it.

Quoted 9 lines

The only thing is that everything in /dev/ gets deleted and rebuilt each time I reboot.

I have been led to believe (rightly or wrongly) that it is udev that is responsible for this. So the question is how can I make a symlink from /dev/536ep0 to /dev/modem that will remain in place and will persist even after a reboot?

Try adding:
KERNEL="536ep0", SYMLINK+="modem"

to a rules file in:
/etc/udev/rules.d/

Kay

Quoted 12 lines

-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel