chiark / gitweb /
rules: call 'hwdb' with --subsystem= where appropriate
authorKay Sievers <kay@vrfy.org>
Thu, 25 Oct 2012 19:33:22 +0000 (21:33 +0200)
committerKay Sievers <kay@vrfy.org>
Thu, 25 Oct 2012 19:44:33 +0000 (21:44 +0200)
rules/75-net-description.rules
rules/75-tty-description.rules

index 4437a34..b127757 100644 (file)
@@ -4,7 +4,7 @@ ACTION=="remove", GOTO="net_end"
 SUBSYSTEM!="net", GOTO="net_end"
 
 SUBSYSTEMS=="usb", ENV{ID_MODEL}=="", IMPORT{builtin}="usb_id"
-SUBSYSTEMS=="usb", IMPORT{builtin}="hwdb"
+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="net_end"
 
index 59857c2..c8ee376 100644 (file)
@@ -5,7 +5,7 @@ SUBSYSTEM!="tty", GOTO="tty_end"
 
 IMPORT{builtin}="hwdb"
 
-SUBSYSTEMS=="usb", ENV{ID_MODEL}=="", IMPORT{builtin}="usb_id"
+SUBSYSTEMS=="usb", ENV{ID_MODEL}=="", IMPORT{builtin}="usb_id --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"