mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-01-24 02:03:54 +03:00
rules: fix usb_id/hwdb mixup in tty-description.rules
<grawity> btw, in 15ce372b75a "call 'hwdb' with --subsystem=" you actually added "usb_id --subsystem=usb" (75-tty-description.rules) <kay> ouch :)
This commit is contained in:
parent
7ee40fc3e9
commit
f17491e27d
@ -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"
|
||||
|
Loading…
x
Reference in New Issue
Block a user