summaryrefslogtreecommitdiff
path: root/udev/80-libinput-device-groups.rules.in
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2015-07-01 10:17:48 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2015-07-09 11:29:06 +1000
commit4e3944375779e7fb0fc960d6079d186b09540fca (patch)
tree397dead28362b36dfd297041c104f6ebbe797a29 /udev/80-libinput-device-groups.rules.in
parentcc59c8986f5d561c40c9edf746403cc69da66913 (diff)
udev: make sure the udev callout path is valid for a test run
udev requires callout binaries to sit in /lib/udev or otherwise provide an absolute path. The test suite should work without installing everything first, so create two rule files - one to install, one with the path to the $builddir/test Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Diffstat (limited to 'udev/80-libinput-device-groups.rules.in')
-rw-r--r--udev/80-libinput-device-groups.rules.in8
1 files changed, 8 insertions, 0 deletions
diff --git a/udev/80-libinput-device-groups.rules.in b/udev/80-libinput-device-groups.rules.in
new file mode 100644
index 00000000..c2af0ce7
--- /dev/null
+++ b/udev/80-libinput-device-groups.rules.in
@@ -0,0 +1,8 @@
+ACTION!="add|change", GOTO="libinput_device_group_end"
+KERNEL!="event[0-9]*", GOTO="libinput_device_group_end"
+
+ATTRS{phys}=="?*", \
+ PROGRAM="@UDEV_TEST_PATH@libinput-device-group %S%p", \
+ ENV{LIBINPUT_DEVICE_GROUP}="%c"
+
+LABEL="libinput_device_group_end"