Skip to content

udev rules Wdup match

Alexey Gladkov edited this page Mar 15, 2023 · 2 revisions

-Wdup-match

Warn when there are duplicate checks in a rule. This most likely indicates a typo.

Udev sorts all the conditions and actions in the rule so that the checks are at the beginning of the rule. Therefore, having two identical checks does not make any sense.

Problematic code:

ACTION=="add", SUBSYSTEM=="sound", ACTION=="add", RUN+="/bin/true"
Clone this wiki locally