[systemd-commits] rules/75-tty-description.rules

Kay Sievers kay at kemper.freedesktop.org
Thu Oct 25 13:17:59 PDT 2012


 rules/75-tty-description.rules |    7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

New commits:
commit f17491e27d5a4258516249a0369b95a0e1544ab8
Author: Kay Sievers <kay at vrfy.org>
Date:   Thu Oct 25 22:17:05 2012 +0200

    rules: fix usb_id/hwdb mixup in tty-description.rules
    
    <grawity> btw, in 15ce372b75a "call 'hwdb' with --subsystem=" you
      actually added "usb_id --subsystem=usb" (75-tty-description.rules)
    <kay> ouch :)

diff --git a/rules/75-tty-description.rules b/rules/75-tty-description.rules
index c8ee376..bfa6de3 100644
--- a/rules/75-tty-description.rules
+++ b/rules/75-tty-description.rules
@@ -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"



More information about the systemd-commits mailing list