chiark / gitweb /
rules: Fix persistent input symlinks for interface 00
authorMartin Pitt <martinpitt@gnome.org>
Thu, 11 Oct 2012 06:21:17 +0000 (08:21 +0200)
committerMartin Pitt <martinpitt@gnome.org>
Thu, 11 Oct 2012 06:21:17 +0000 (08:21 +0200)
commitfb5d873cfd4606383964c707da0ec21ebaa1c04b
tree021b8c5ba716d593c0a1d38d53de8ca7c284be45
parent48383c251185c4596e9098878b28334c69e7bfd9
rules: Fix persistent input symlinks for interface 00

Commits 5e9eb156c and 32567f8 introduced persistent symlinks for input devices
with more than one interface. However, this does not ensure stability for the
"default" interface, i. e. with interface number 00 or a nonexisting one. If a
device with a higher interface number appears first, it'll claim the symlink
name without an interface number, and the "interface 00" device won't get any.

Fix this by creating the default symlink only for interface 00 or a nonexisting
one, so that we properly partition the two cases over the two rules.

https://launchpad.net/bugs/1057824
rules/60-persistent-input.rules