]>
Commit | Line | Data |
---|---|---|
3a6ce677 BR |
1 | #!/bin/sh |
2 | # SPDX-License-Identifier: LGPL-2.1-or-later | |
3 | set -eu | |
4 | ||
8b3d4ff0 | 5 | cd "${1:?}" |
3a6ce677 BR |
6 | |
7 | (curl --fail -L 'https://chromium.googlesource.com/chromiumos/platform2/+/master/power_manager/udev/gen_autosuspend_rules.py?format=TEXT'; echo) \ | |
8 | | base64 -d > tools/chromiumos/gen_autosuspend_rules.py | |
9 | ||
10 | (cat <<%EOF | |
11 | # This file is part of systemd. | |
12 | # | |
13 | # Rules to autosuspend known fingerprint readers (pulled from libfprint). | |
14 | # | |
15 | %EOF | |
16 | curl --fail -L 'https://gitlab.freedesktop.org/libfprint/libfprint/-/raw/master/data/autosuspend.hwdb') \ | |
17 | > hwdb.d/60-autosuspend-fingerprint-reader.hwdb |