X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=rules%2F70-mouse.rules;fp=rules%2F70-mouse.rules;h=0e359e83f1a24d9940b14be629c10b7bf06e166e;hb=0213a26f656d72ac83eb201f2104726fcfe60eaa;hp=0000000000000000000000000000000000000000;hpb=0c124f8b2c93d2c7d6eefca3bdc59b28250fc077;p=elogind.git diff --git a/rules/70-mouse.rules b/rules/70-mouse.rules new file mode 100644 index 000000000..0e359e83f --- /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::vp: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"