chiark / gitweb /
rules: Debian update
[elogind.git] / etc / udev / debian / 60-persistent-input.rules
similarity index 90%
rename from etc/udev/debian/persistent-input.rules
rename to etc/udev/debian/60-persistent-input.rules
index 47c4ae98cb0beb05adc288ded99a619ec7fd703a..8f49d250b1a4209015c01a974d99e3a36da196e2 100644 (file)
@@ -1,5 +1,5 @@
 SUBSYSTEM!="input",                    GOTO="persistent_input_end"
-ACTION!="add",                         GOTO="persistent_input_end"
+ACTION!="add|change",                  GOTO="persistent_input_end"
 # ignore the mid-level drivers
 KERNEL=="input[0-9]*",                 GOTO="persistent_input_end"
 
@@ -22,7 +22,7 @@ ATTRS{modalias}=="input:*-*a[068],*|input:*-*a*,[68],*m*", \
        ATTRS{modalias}!="input:*-*k*14A,*r*", \
                                        ENV{ID_CLASS}="joystick"
 
-ENV{ID_SERIAL}=="",                    ENV{ID_SERIAL}="noserial"
+ENV{ID_CLASS}=="?*", ENV{ID_SERIAL}=="", ENV{ID_SERIAL}="noserial"
 
 # by-id links, generic and for the event devices
 KERNEL=="mouse*|js*", ENV{ID_BUS}=="?*", ENV{ID_CLASS}=="?*", \
@@ -31,7 +31,7 @@ KERNEL=="event*", ENV{ID_BUS}=="?*", ENV{ID_CLASS}=="?*", \
        SYMLINK+="input/by-id/$env{ID_BUS}-$env{ID_SERIAL}-event-$env{ID_CLASS}"
 
 # by-path links
-IMPORT{program}="path_id %p"
+IMPORT{program}="path_id $devpath"
 KERNEL=="mouse*|js*", ENV{ID_PATH}=="?*", \
        SYMLINK+="input/by-path/$env{ID_PATH}-$env{ID_CLASS}"
 KERNEL=="event*", ENV{ID_PATH}=="?*", \