mirror of
https://github.com/systemd/systemd.git
synced 2024-12-23 21:35:11 +03:00
rules: call 'hwdb' with --subsystem= where appropriate
This commit is contained in:
parent
0380748b55
commit
15ce372b75
@ -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"
|
||||
|
||||
|
@ -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"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user