chiark / gitweb /
rules: fix usb_id/hwdb mixup in tty-description.rules
authorKay Sievers <kay@vrfy.org>
Thu, 25 Oct 2012 20:17:05 +0000 (22:17 +0200)
committerKay Sievers <kay@vrfy.org>
Thu, 25 Oct 2012 20:17:05 +0000 (22:17 +0200)
<grawity> btw, in 15ce372b75a "call 'hwdb' with --subsystem=" you
  actually added "usb_id --subsystem=usb" (75-tty-description.rules)
<kay> ouch :)

rules/75-tty-description.rules

index c8ee376..bfa6de3 100644 (file)
@@ -3,12 +3,13 @@
 ACTION=="remove", GOTO="tty_end"
 SUBSYSTEM!="tty", GOTO="tty_end"
 
-IMPORT{builtin}="hwdb"
-
-SUBSYSTEMS=="usb", ENV{ID_MODEL}=="", IMPORT{builtin}="usb_id --subsystem=usb"
+SUBSYSTEMS=="usb", ENV{ID_MODEL}=="", IMPORT{builtin}="usb_id"
+SUBSYSTEMS=="usb", IMPORT{builtin}="hwdb --subsystem=usb"
 SUBSYSTEMS=="usb", ATTRS{idVendor}!="", ATTRS{idProduct}!="", ENV{ID_VENDOR_ID}="$attr{idVendor}", ENV{ID_MODEL_ID}="$attr{idProduct}"
 SUBSYSTEMS=="usb", GOTO="tty_end"
 
+SUBSYSTEMS=="pci", IMPORT{builtin}="hwdb --subsystem=usb"
 SUBSYSTEMS=="pci", ENV{ID_BUS}="pci", ENV{ID_VENDOR_ID}="$attr{vendor}", ENV{ID_MODEL_ID}="$attr{device}"
 
+
 LABEL="tty_end"