[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Huawei e122 - how to make symlink to usb modem?



On Sun, 12 Jun 2011 16:14:53 +0200, Kamil Jońca wrote:

> Camaleón <noelamac@gmail.com> writes:
> 
>> What's the output for udevinfo on that device?

(...)

> Udevadm info starts with the device specified by the devpath and then
> walks up the chain of parent devices. It prints for every device found,
> all possible attributes in the udev rules key format. A rule to match,
> can be composed by the attributes of the device and the attributes from
> one single parent device.

(...)

Okay... then according to this doc:

http://reactivated.net/writing_udev_rules.html#udevinfo

You can't mix attributes from different parent devices, so

SUBSYSTEM=="tty"

cannot go with

ATTRS{idVendor} == "12d1"

You may try with:

SUBSYSTEMS=="usb", ATTRS{idVendor}=="12d1", ATTRS{idProduct}=="1003", SYMLINK+="e122"

Greetings,

-- 
Camaleón


Reply to: