X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=rules%2F75-tty-description.rules;h=11277b7d6fa0a97d569fd4b704018d075d8403cb;hb=27e7c26268bd4c16edb92f2b8a8626b00c6f2dad;hp=59857c2d22b061026bfc4f91173607879b51c9cc;hpb=796b06c21b62d13c9021e2fbd9c58a5c6edb2764;p=elogind.git diff --git a/rules/75-tty-description.rules b/rules/75-tty-description.rules index 59857c2d2..11277b7d6 100644 --- a/rules/75-tty-description.rules +++ b/rules/75-tty-description.rules @@ -3,12 +3,10 @@ ACTION=="remove", GOTO="tty_end" SUBSYSTEM!="tty", GOTO="tty_end" -IMPORT{builtin}="hwdb" - -SUBSYSTEMS=="usb", ENV{ID_MODEL}=="", IMPORT{builtin}="usb_id" -SUBSYSTEMS=="usb", ATTRS{idVendor}!="", ATTRS{idProduct}!="", ENV{ID_VENDOR_ID}="$attr{idVendor}", ENV{ID_MODEL_ID}="$attr{idProduct}" +SUBSYSTEMS=="usb", IMPORT{builtin}="usb_id", IMPORT{builtin}="hwdb --subsystem=usb" SUBSYSTEMS=="usb", GOTO="tty_end" SUBSYSTEMS=="pci", ENV{ID_BUS}="pci", ENV{ID_VENDOR_ID}="$attr{vendor}", ENV{ID_MODEL_ID}="$attr{device}" +SUBSYSTEMS=="pci", IMPORT{builtin}="hwdb --subsystem=pci" LABEL="tty_end"