linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Udev rule for HSDPA modem
@ 2008-11-28 17:56 Jar
  2008-11-28 18:51 ` Greg KH
                   ` (24 more replies)
  0 siblings, 25 replies; 26+ messages in thread
From: Jar @ 2008-11-28 17:56 UTC (permalink / raw)
  To: linux-hotplug

Hello

I hope this is the correct list to ask this. I am not subscribed, so add
me to cc.

HSDPA modem (usb_serial+option modules) creates three ttyUSB devices.
The first one is the modem interface used for ppp connection. How to
write udev rule which will match to the first ttyUSB device? E.g. if the
devices are ttyUSB1, ttyUSB2 and ttyUSB3, how to create e.g. symlinks
modem0, modem1 and modem2, then it would be guaranteed that the modem0
device would be the first one.

I tried the above rule, but it's problem is that it match only ttyUSB0
and that is not always the HSDPA modem device.

ACTION="add", \
KERNEL="ttyUSB0", \
SUBSYSTEMS="usb", \
ATTRS{idVendor}="12d1", \
ATTRS{idProduct}="1003", \
SYMLINK+="modem", \
RUN+="/tmp/udev_test.sh"

Rule below will match all ttyUSB* devices and then the udev_test.sh will
run several times. I would want to run it only once for the first ttyUSB
of the modem.

ACTION="add", \
KERNEL="ttyUSB*", \
...
...

-- 
Best Regards, Jar

^ permalink raw reply	[flat|nested] 26+ messages in thread

end of thread, other threads:[~2008-12-05  4:54 UTC | newest]

Thread overview: 26+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-28 17:56 Udev rule for HSDPA modem Jar
2008-11-28 18:51 ` Greg KH
2008-11-29  8:00 ` Jar
2008-11-29 17:37 ` Greg KH
2008-11-30  5:21 ` Kay Sievers
2008-12-03  6:45 ` Greg KH
2008-12-03  9:27 ` Kay Sievers
2008-12-03 12:12 ` Kay Sievers
2008-12-03 15:11 ` Kay Sievers
2008-12-03 17:06 ` Karl O. Pinc
2008-12-03 17:37 ` Kay Sievers
2008-12-03 18:49 ` Karl O. Pinc
2008-12-03 23:10 ` Greg KH
2008-12-03 23:54 ` Kay Sievers
2008-12-04  0:04 ` Greg KH
2008-12-04  0:12 ` Kay Sievers
2008-12-04  0:40 ` Greg KH
2008-12-04  1:14 ` Kay Sievers
2008-12-04  6:28 ` Jar
2008-12-04  7:23 ` Kay Sievers
2008-12-04 14:22 ` Jar
2008-12-04 15:27 ` Karl O. Pinc
2008-12-04 18:56 ` Greg KH
2008-12-04 19:11 ` Greg KH
2008-12-05  2:53 ` Kay Sievers
2008-12-05  4:54 ` Karl O. Pinc

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).