mirror of
https://github.com/token2/snapd.git
synced 2026-03-13 11:15:47 -07:00
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.