source: udev/61-persistent-input.rules@ 9c4932e

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since 9c4932e was 95756c0, checked in by Jim Gifford <clfs@…>, 18 years ago

Updates with Upstream

  • Property mode set to 100644
File size: 1.7 KB
Line 
1########################################################################
2#
3# Description : 61-persistent-input.rules
4#
5# Authors : Based on Open Suse Udev Rules
6# kay.sievers@suse.de and hare@suse.de
7#
8# Adapted to : Jim Gifford
9# LFS
10#
11# Version : 00.01
12#
13# Notes :
14#
15########################################################################
16
17ACTION!="add", GOTO="persistent_input_end"
18SUBSYSTEM!="input", GOTO="persistent_input_end"
19KERNEL=="input[0-9]*", GOTO="persistent_input_end"
20
21# usb devices
22SUBSYSTEMS=="usb", IMPORT{program}="usb_id -x"
23SUBSYSTEMS=="usb", ATTRS{bInterfaceClass}=="03", ATTRS{bInterfaceProtocol}=="01", ENV{ID_CLASS}="kbd"
24SUBSYSTEMS=="usb", ATTRS{bInterfaceClass}=="03", ATTRS{bInterfaceProtocol}=="02", ENV{ID_CLASS}="mouse"
25
26# other devices
27DRIVERS=="pcspkr", ENV{ID_CLASS}="spkr"
28DRIVERS=="atkbd", ENV{ID_CLASS}="kbd"
29DRIVERS=="psmouse", ENV{ID_CLASS}="mouse"
30ATTRS{name}=="*dvb*|*DVB*|* IR *", ENV{ID_CLASS}="ir"
31ATTRS{modalias}=="input:*-*a[068],*|input:*-*a*,[68],*m*", ATTRS{modalias}!="input:*-*k*14A,*r*", ENV{ID_CLASS}="joystick"
32
33# fill empty serial number
34ENV{ID_CLASS}=="?*", ENV{ID_SERIAL}=="", ENV{ID_SERIAL}="noserial"
35
36# by-id links
37KERNEL=="mouse*|js*", ENV{ID_BUS}=="?*", ENV{ID_CLASS}=="?*", SYMLINK+="input/by-id/$env{ID_BUS}-$env{ID_SERIAL}-$env{ID_CLASS}"
38KERNEL=="event*", ENV{ID_BUS}=="?*", ENV{ID_CLASS}=="?*", SYMLINK+="input/by-id/$env{ID_BUS}-$env{ID_SERIAL}-event-$env{ID_CLASS}"
39
40# by-path
41IMPORT{program}="path_id %p"
42ENV{ID_PATH}=="?*", KERNEL=="mouse*|js*", SYMLINK+="input/by-path/$env{ID_PATH}-$env{ID_CLASS}"
43ENV{ID_PATH}=="?*", KERNEL=="event*", SYMLINK+="input/by-path/$env{ID_PATH}-event-$env{ID_CLASS}"
44
45LABEL="persistent_input_end"
Note: See TracBrowser for help on using the repository browser.