mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2025-12-20 05:40:04 +01:00
In some cases a device may need a device group assigned by a custom udev rule or hwdb entry. Don't overwrite that with our generated one. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Hans de Goede <hdegoede@redhat.com>
9 lines
293 B
Text
9 lines
293 B
Text
ACTION!="add|change", GOTO="libinput_device_group_end"
|
|
KERNEL!="event[0-9]*", GOTO="libinput_device_group_end"
|
|
|
|
ATTRS{phys}=="?*", \
|
|
ENV{LIBINPUT_DEVICE_GROUP}=="", \
|
|
PROGRAM="@UDEV_TEST_PATH@libinput-device-group %S%p", \
|
|
ENV{LIBINPUT_DEVICE_GROUP}="%c"
|
|
|
|
LABEL="libinput_device_group_end"
|