summaryrefslogtreecommitdiff
path: root/app-crypt/trousers/files/tcsd.initd
blob: 9b18c48e1ee39a8551358177cea927b0fc279f62 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/sbin/openrc-run
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

command=/usr/sbin/tcsd
description="TrouSerS' TCS daemon (tcsd)"
command_user="tss:tss"

depend() {
	use logger
	need net
}

start_pre() {
	if [ ! -c /dev/tpm ] && [ ! -c /dev/tpm0 ] ; then
		eerror "No TPM device found!"
		return 1
	fi
}