Files
Alberto Mardegan 16d82d4872 interfaces/udev: refactor handling of udevadm triggers for input
The old code would run unnecessary `udevadm trigger` commands in a
couple of situations:

1. If a subsystem other than "input" was specified, the trigger for it
   would be run twice: once because of the unconditional call to
   `udevadm --subsystem-nomatch=input`, and once because of the call to
   `udevadm --subsystem-match=<subsystem>`.
2. If both "input" and "input/keys" are part of the subsystem list,
   there's no need to run a trigger specific to the keys: running the
   trigger for the whole "input" subsystem is enough.
2022-04-18 17:24:04 +03:00
..