mirror of
https://github.com/systemd/systemd.git
synced 2026-06-24 08:47:49 +00:00
ID_INTEGRATION is not being updated with hwdb entries, asign the new
value to it when hwdb has been imported.
We still need the 65-integration.rule assignment for devices that aren't
in hwdb.
While at it remove unneeded check in 70-touchpad.rules, as it was not
added for 70-joystick.rules with the statement if ID_INPUT_* is set and
ID_INPUT not, there is a bug elsewhere. And remove unneeded gotos in
both files.
Follow-up for a4381cae8b.
17 lines
703 B
Plaintext
17 lines
703 B
Plaintext
# do not edit this file, it will be overwritten on update
|
|
|
|
ACTION=="remove", GOTO="touchpad_end"
|
|
ENV{ID_INPUT_TOUCHPAD}=="", GOTO="touchpad_end"
|
|
KERNEL!="event*", GOTO="touchpad_end"
|
|
|
|
# touchpad:<subsystem>:v<vid>p<pid>:name:<name>:*
|
|
KERNELS=="input*", ENV{ID_BUS}!="", \
|
|
IMPORT{builtin}="hwdb 'touchpad:$env{ID_BUS}:v$attr{id/vendor}p$attr{id/product}:name:$attr{name}:'"
|
|
|
|
# Spread the hwdb override to ID_INTEGRATION, in the future we could remove the
|
|
# touchpad hwdb entirely or retain it using the generic ID_INTEGRATION instead
|
|
# specific ID_INPUT_TOUCHPAD_INTEGRATION.
|
|
ENV{ID_INPUT_TOUCHPAD_INTEGRATION}!="", ENV{ID_INTEGRATION}="$env{ID_INPUT_TOUCHPAD_INTEGRATION}"
|
|
|
|
LABEL="touchpad_end"
|