2019-11-15 10:32:24 +00:00
|
|
|
#!/bin/sh
|
2021-01-27 12:37:10 +00:00
|
|
|
# SPDX-License-Identifier: LGPL-2.1-or-later
|
2019-11-15 10:32:24 +00:00
|
|
|
set -eu
|
|
|
|
|
2021-04-20 11:02:02 +00:00
|
|
|
cd "${1:?}"
|
2019-11-15 10:32:24 +00:00
|
|
|
|
2023-08-16 00:19:49 +00:00
|
|
|
(curl --fail -L 'https://chromium.googlesource.com/chromiumos/platform2/+/HEAD/power_manager/udev/gen_autosuspend_rules.py?format=TEXT'; echo) \
|
2023-02-05 20:41:24 +00:00
|
|
|
| base64 -d >tools/chromiumos/gen_autosuspend_rules.py
|
2021-01-19 13:59:42 +00:00
|
|
|
|
2023-02-05 20:41:24 +00:00
|
|
|
(cat <<EOF
|
2021-01-19 13:59:42 +00:00
|
|
|
# This file is part of systemd.
|
|
|
|
#
|
|
|
|
# Rules to autosuspend known fingerprint readers (pulled from libfprint).
|
|
|
|
#
|
2023-02-05 20:41:24 +00:00
|
|
|
EOF
|
2021-01-19 13:59:42 +00:00
|
|
|
curl --fail -L 'https://gitlab.freedesktop.org/libfprint/libfprint/-/raw/master/data/autosuspend.hwdb') \
|
2023-02-05 20:41:24 +00:00
|
|
|
>hwdb.d/60-autosuspend-fingerprint-reader.hwdb
|