15 lines
726 B
Text
15 lines
726 B
Text
|
|
#!/bin/sh
|
||
|
|
# SPDX-License-Identifier: GPL-3.0-only
|
||
|
|
# SPDX-FileCopyrightText: Copyright (C) 2026 Catcrafts®
|
||
|
|
#
|
||
|
|
# apk replaces /usr/bin/fingerprintd on disk and leaves the running daemon
|
||
|
|
# alone. The phone is then a working matcher running the OLD code: the journal
|
||
|
|
# says MATCH and whatever the upgrade added is dead until a reboot, which is
|
||
|
|
# how 0.2.2's FingerMatched signal first presented (fp6 journal, fingerprint
|
||
|
|
# lane, 2026-09-05). Restart it if it is running.
|
||
|
|
#
|
||
|
|
# try-restart: a daemon that is not running -- no /dev/tee0, no trustlet --
|
||
|
|
# stays not running. Inside a build or CI chroot there is no systemd to ask.
|
||
|
|
[ -d /run/systemd/system ] || exit 0
|
||
|
|
systemctl try-restart fingerprintd.service 2>/dev/null || :
|
||
|
|
exit 0
|