summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorMartin Pitt <martin.pitt@ubuntu.com>2009-11-13 15:44:22 +0100
committerMartin Pitt <martin.pitt@ubuntu.com>2009-11-13 15:44:22 +0100
commit6a8865925cb35f075ba6aa0762a91401b12466e2 (patch)
treed9c0d1600b60f1856339269c523b73d88989893f /tools
parent7720ebd07bf7fdd4fc46dc5860e53eb250c3eeb4 (diff)
mpi2udev.py: Take USBProduct into account
We previously failed to take the USBProduct key into account for generating udev rules, which led to overly generic rules for e. g. the Nokia S60 or the Sony PSP. https://launchpad.net/bugs/477976
Diffstat (limited to 'tools')
-rwxr-xr-xtools/mpi2udev.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/mpi2udev.py b/tools/mpi2udev.py
index b3f96e4..50a77bd 100755
--- a/tools/mpi2udev.py
+++ b/tools/mpi2udev.py
@@ -39,7 +39,7 @@ def parse_mpi(mpi):
print '#', m
except ConfigParser.NoOptionError:
pass
- for name in ['usbvendor', 'usbproduct']:
+ for name in ['usbvendor', 'usbproduct', 'usbmodel']:
try:
value = cp.get('Device', name)
print mpi2udev[name] % value, ',',