Skip to contentSkip to conversation

udev or hotplug

DISCUSSION Danny Budik 2 participants 2 messages May 8, 2006

lore
Share & tools
lore
#0 lore raw

Hello all,

I would like to automate two steps in Linux when I plug in a wireless modem card into a PCMCIA slot. When I plug it in, I need to run the following 2 commands for the card to be recognized properly before I can run the pppd command to connect:

#modprobe usbserial vendor=0x1199 product=0x0112
#mknod /dev/ttyUSB2 c 188 0

Is there a way to automate this by writing a udev rule so that whenever the computer sees the device, it loads the usbserial driver and maps it to /dev/ttyuUSB2? I seem to be getting the feeling that udev is the "new hotness" and hotplug is "old'n'busted" and is being phased out.

-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0709&bid&3057&dat1642
_______________________________________________
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 7 lines · Danny Budik

Hello all,

I would like to automate two steps in Linux when I plug in a wireless modem card into a PCMCIA slot. When I plug it in, I need to run the following 2 commands for the card to be recognized properly before I can run the pppd command to connect:

Quoted 8 lines

#modprobe usbserial vendor=0x1199 product=0x0112
#mknod /dev/ttyUSB2 c 188 0

Is there a way to automate this by writing a udev rule so that whenever the computer sees the device, it loads the usbserial driver and maps it to /dev/ttyuUSB2? I seem to be getting the feeling that udev is the "new hotness" and hotplug is "old'n'busted" and is being phased out.

This looks like an evdo card setup. In the usb/serial directory, you will see a file called airprime.c. You can put your setup there as a USB device in there, possibly...

Though, is it this one? off of line 19:

{ USB_DEVICE(0xf3d, 0x0112) }, /* AirPrime CDMA Wireless PC Card */

If so, you may just need to 'modprobe airprime'

-Ken

-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel