fingerprintd/packaging/fingerprintd.post-install

16 lines
840 B
Text
Raw Normal View History

#!/bin/sh
# SPDX-License-Identifier: GPL-3.0-only
# SPDX-FileCopyrightText: Copyright (C) 2026 Catcrafts®
#
# The trustlet is not in this package: fp6-vendor-blobs reassembles it from
# the phone's own modem partition (packaging/20-focal64.manifest). On an
# image's first boot its unit does that before udev; on a phone that is
# already running, do it now, so a fresh 'apk add fingerprintd' does not wait
# for a boot to have a sensor. --if-device makes this a quiet no-op inside
# build/CI chroots; --refresh re-derives the file from the active slot even if
# one is present, and never removes a file it cannot replace.
#
# The daemon itself starts at the next boot: its unit, module load and
# tmpfiles arrive with the -systemd subpackage, after this script has run.
/usr/lib/fp6-vendor-blobs/extract --if-device --refresh || :
exit 0