diff options
Diffstat (limited to 'rules')
-rw-r--r-- | rules/75-tty-description.rules | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/rules/75-tty-description.rules b/rules/75-tty-description.rules index c8ee376baf..bfa6de39e9 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" |