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 4437a34edaa085a6bf96440feb524b5295d8a46e..b127757d0c744cd603236b8bec05d281bc600c3e 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 59857c2d22b061026bfc4f91173607879b51c9cc..c8ee376baf27b5e2e82d39bf244ac1cefe0f8e7e 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"