Udev: persistent-net-generator.rules and USB Devices

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

 



G'day,
I noticed that in (70-)persistent-net.rules, the comments for USB devices are missing the device/vendor id's. Example:
# USB device 0x:0x (rt73usb)

I tried udevadm info --query=all on one such device and it didn't return much, but then, neither does it with pci devices -- I need to use --attribute-walk for it to show more. So I couldn't really figure out why they are missing.

However, using usb_id does give us useful information -- we can get _really_ fancy, in fact, and use text! -- so maybe it's worth using it? # ./usb_id --export /devices/pci0000:00/0000:00:1d.7/usb1/1-2/1-2:1.0/net/wlan0
ID_VENDOR=Ralink
ID_VENDOR_ENC=Ralink
ID_MODEL=802.11_bg_WLAN
ID_MODEL_ENC=802.11\x20bg\x20WLAN
ID_REVISION=0001
ID_SERIAL=Ralink_802.11_bg_WLAN

Now, I know the vendors don't always supply info in the device (and mine shows a certain lack of imagination/detail), but it must be better than nothing...

Omair

----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.
--
To unsubscribe from this list: send the line "unsubscribe linux-hotplug" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel]     [Linux DVB]     [Asterisk Internet PBX]     [DCCP]     [Netdev]     [X.org]     [Util Linux NG]     [Fedora Women]     [ALSA Devel]     [Linux USB]

  Powered by Linux