summaryrefslogtreecommitdiff
path: root/rules
diff options
context:
space:
mode:
Diffstat (limited to 'rules')
-rw-r--r--rules/70-mouse.rules15
-rw-r--r--rules/Makefile.am1
2 files changed, 16 insertions, 0 deletions
diff --git a/rules/70-mouse.rules b/rules/70-mouse.rules
new file mode 100644
index 0000000000..0e359e83f1
--- /dev/null
+++ b/rules/70-mouse.rules
@@ -0,0 +1,15 @@
+# do not edit this file, it will be overwritten on update
+
+ACTION=="remove", GOTO="mouse_end"
+KERNEL!="event*", GOTO="mouse_end"
+ENV{ID_INPUT_MOUSE}=="", GOTO="mouse_end"
+
+# mouse:<subsystem>:v<vid>p<pid>:name:<name>:*
+KERNELS=="input*", ENV{ID_BUS}=="usb", \
+ IMPORT{builtin}="hwdb 'mouse:$env{ID_BUS}:v$attr{id/vendor}p$attr{id/product}:name:$attr{name}:'", \
+ GOTO="mouse_end"
+KERNELS=="input*", ENV{ID_BUS}=="bluetooth", \
+ IMPORT{builtin}="hwdb 'mouse:$env{ID_BUS}:v$attr{id/vendor}p$attr{id/product}:name:$attr{name}:'", \
+ GOTO="mouse_end"
+
+LABEL="mouse_end"
diff --git a/rules/Makefile.am b/rules/Makefile.am
index ae950a9546..dfbda04684 100644
--- a/rules/Makefile.am
+++ b/rules/Makefile.am
@@ -12,6 +12,7 @@ dist_udevrules_DATA = \
60-persistent-v4l.rules \
61-accelerometer.rules \
64-btrfs.rules \
+ 70-mouse.rules \
75-net-description.rules \
75-probe_mtd.rules \
75-tty-description.rules \