summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2016-07-20 19:55:48 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2016-08-05 08:58:17 +1000
commit33a6613671178db1cc0415c3c68085f1da42dc0e (patch)
treed4c625c5069e03617ca5459d61b15e39b589b926
parent92be97b04537db7c286a88790063ad5a2869de02 (diff)
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 <peter.hutterer@who-t.net> Reviewed-by: Hans de Goede <hdegoede@redhat.com> (cherry picked from commit 188bad48668661378827818a8706aa621a1182dd)
-rw-r--r--udev/80-libinput-device-groups.rules.in1
1 files changed, 1 insertions, 0 deletions
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"