summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rwxr-xr-xtools/autosuspend-update.sh11
1 files changed, 10 insertions, 1 deletions
diff --git a/tools/autosuspend-update.sh b/tools/autosuspend-update.sh
index ce945f84f6..b037dd8d5a 100755
--- a/tools/autosuspend-update.sh
+++ b/tools/autosuspend-update.sh
@@ -4,4 +4,13 @@ set -eu
cd "$1"
(curl --fail -L 'https://chromium.googlesource.com/chromiumos/platform2/+/master/power_manager/udev/gen_autosuspend_rules.py?format=TEXT'; echo) \
- | base64 -d > tools/chromiumos/gen_autosuspend_rules.py \ No newline at end of file
+ | base64 -d > tools/chromiumos/gen_autosuspend_rules.py
+
+(cat <<%EOF
+# This file is part of systemd.
+#
+# Rules to autosuspend known fingerprint readers (pulled from libfprint).
+#
+%EOF
+curl --fail -L 'https://gitlab.freedesktop.org/libfprint/libfprint/-/raw/master/data/autosuspend.hwdb') \
+ > hwdb.d/60-autosuspend-fingerprint-reader.hwdb