From 15ce372b75a48f73cc3b0ca435b9d9df3ce0ea49 Mon Sep 17 00:00:00 2001 From: Kay Sievers Date: Thu, 25 Oct 2012 21:33:22 +0200 Subject: rules: call 'hwdb' with --subsystem= where appropriate --- rules/75-net-description.rules | 2 +- rules/75-tty-description.rules | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'rules') diff --git a/rules/75-net-description.rules b/rules/75-net-description.rules index 4437a34eda..b127757d0c 100644 --- a/rules/75-net-description.rules +++ b/rules/75-net-description.rules @@ -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" diff --git a/rules/75-tty-description.rules b/rules/75-tty-description.rules index 59857c2d22..c8ee376baf 100644 --- a/rules/75-tty-description.rules +++ b/rules/75-tty-description.rules @@ -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" -- cgit v1.2.3-54-g00ecf