]> git.ipfire.org Git - thirdparty/systemd.git/blame - tools/update-hwdb-autosuspend.sh
Merge pull request #32336 from teknoraver/foreach_element
[thirdparty/systemd.git] / tools / update-hwdb-autosuspend.sh
CommitLineData
62d39995 1#!/bin/sh
9ee03516 2# SPDX-License-Identifier: LGPL-2.1-or-later
62d39995
ZJS
3set -eu
4
3b6fd3c1 5cd "${1:?}"
62d39995 6
bd2f6a56 7(curl --fail -L 'https://chromium.googlesource.com/chromiumos/platform2/+/HEAD/power_manager/udev/gen_autosuspend_rules.py?format=TEXT'; echo) \
7a17e41d 8 | base64 -d >tools/chromiumos/gen_autosuspend_rules.py
b25e76ea 9
7a17e41d 10(cat <<EOF
b25e76ea
BB
11# This file is part of systemd.
12#
13# Rules to autosuspend known fingerprint readers (pulled from libfprint).
14#
7a17e41d 15EOF
b25e76ea 16curl --fail -L 'https://gitlab.freedesktop.org/libfprint/libfprint/-/raw/master/data/autosuspend.hwdb') \
7a17e41d 17 >hwdb.d/60-autosuspend-fingerprint-reader.hwdb