]> git.ipfire.org Git - thirdparty/systemd.git/commit
tools: rewrite make-autosuspend-rules.py and add udev rules
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sat, 13 Jun 2020 15:52:41 +0000 (17:52 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 22 Jun 2020 12:45:20 +0000 (14:45 +0200)
commit79dc5d35dd7eb372afeb638cc1f86d1da2045623
tree0922d1a0e9f99dd01e9fc1d0478ea4fbf611f11d
parent876c75fe870846b09b54423a6b719d80bc879b27
tools: rewrite make-autosuspend-rules.py and add udev rules

Concatenating strings is not a very efficient approach. And in this case fully
unnecessary. We also need some rules to make use of those hwdb entries.

PCI needs to be 8 characters, not 4. And we need to use uppercase hexadecimal
for both. With udev rules this made no difference, but hwdb match is case
sensitive.

Fixes #16119.
rules.d/60-autosuspend.rules [new file with mode: 0644]
rules.d/meson.build
tools/make-autosuspend-rules.py