From 33a6613671178db1cc0415c3c68085f1da42dc0e Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Wed, 20 Jul 2016 19:55:48 +1000 Subject: udev: don't overwrite a previously set device group 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 Reviewed-by: Hans de Goede (cherry picked from commit 188bad48668661378827818a8706aa621a1182dd) --- udev/80-libinput-device-groups.rules.in | 1 + 1 file changed, 1 insertion(+) diff --git a/udev/80-libinput-device-groups.rules.in b/udev/80-libinput-device-groups.rules.in index c2af0ce7..1a26f783 100644 --- a/udev/80-libinput-device-groups.rules.in +++ b/udev/80-libinput-device-groups.rules.in @@ -2,6 +2,7 @@ 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" -- cgit v1.2.3