Skip to content

Commit

Permalink
Merge pull request #207 from aurel32/debian-usb.ids
Browse files Browse the repository at this point in the history
lsusb.py: add usb.ids path for Debian
  • Loading branch information
gregkh authored Nov 10, 2024
2 parents 74c5fdc + 3fd7d1f commit dd312ac
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lsusb.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
prefix = "/sys/bus/usb/devices/"
usbids = [
"/usr/share/hwdata/usb.ids",
"/usr/share/misc/usb.ids",
"/usr/share/usb.ids",
]
cols = ("", "", "", "", "", "")
Expand Down Expand Up @@ -64,7 +65,7 @@ def myenum(*args):
return type('MyEnum', (), enums)

def parse_usb_ids():
"Parse /usr/share/{hwdata/,}usb.ids and fill usbvendors, usbproducts, usbclasses"
"Parse /usr/share/{hwdata/,misc/}usb.ids and fill usbvendors, usbproducts, usbclasses"
vid = 0
did = 0
modes = myenum('Vendor', 'Class', 'Misc')
Expand Down

0 comments on commit dd312ac

Please sign in to comment.