rules: set ID_BUS=bluetooth for any device with id/bustype attr of 0x0005 (#5539)
authorPeter Hutterer <peter.hutterer@who-t.net>
Tue, 7 Mar 2017 06:55:58 +0000 (16:55 +1000)
committerMartin Pitt <martinpitt@users.noreply.github.com>
Tue, 7 Mar 2017 06:55:58 +0000 (07:55 +0100)
commitf013e99e160f385a0c02793c612ef4c8a8ffc4d7
tree49fe1ba10fd462331dfebe3a3c60aa8a28b82f92
parent7ebf71ee03d5cd16f085283571cbe2e657be030e
rules: set ID_BUS=bluetooth for any device with id/bustype attr of 0x0005 (#5539)

Not all bluetooth devices come through the bluetooth subsystem and those that
don't currently lack the ID_BUS=bluetooth env. This again fails to apply udev
rules and/or hwdb entries that rely on the bluetooth bustype to be set.

Fix this by checking the attribute id/bustype on the device instead of just
the subsystem.

Fixes #4566
rules/60-persistent-input.rules