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