mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usbutils.git
synced 2024-11-26 21:06:36 +08:00
lsusb.py: add usb.ids path for Debian
Commit008e330759
("lsusb.py: remove @DATADIR@ instance") removed the possibility to define the location of the usb.ids file through @DATADIR@ and instead hardcodes the possible paths to the usb.ids file. However the Debian path is missing, fix that. Fixes:008e330759
("lsusb.py: remove @DATADIR@ instance") Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
This commit is contained in:
parent
cda6883cad
commit
3fd7d1fac4
3
lsusb.py
3
lsusb.py
@ -28,6 +28,7 @@ showwakeup = False
|
||||
prefix = "/sys/bus/usb/devices/"
|
||||
usbids = [
|
||||
"/usr/share/hwdata/usb.ids",
|
||||
"/usr/share/misc/usb.ids",
|
||||
"/usr/share/usb.ids",
|
||||
]
|
||||
cols = ("", "", "", "", "", "")
|
||||
@ -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')
|
||||
|
Loading…
Reference in New Issue
Block a user