diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 20:56:41 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 20:56:41 +0100 |
commit | d87262dd706fec50cd150aab3e93883b6337466d (patch) | |
tree | 246b44c33ad7a57550430b0a60fa0df86a3c9e68 /app-crypt/tpm-emulator/files/tpm-emulator.initd-0.7.4 | |
parent | 71bc00c87bba1ce31de0dac6c3b7fd1aee6917fc (diff) |
gentoo resync : 14.07.2018
Diffstat (limited to 'app-crypt/tpm-emulator/files/tpm-emulator.initd-0.7.4')
-rw-r--r-- | app-crypt/tpm-emulator/files/tpm-emulator.initd-0.7.4 | 59 |
1 files changed, 0 insertions, 59 deletions
diff --git a/app-crypt/tpm-emulator/files/tpm-emulator.initd-0.7.4 b/app-crypt/tpm-emulator/files/tpm-emulator.initd-0.7.4 deleted file mode 100644 index 8d5b9be561b1..000000000000 --- a/app-crypt/tpm-emulator/files/tpm-emulator.initd-0.7.4 +++ /dev/null @@ -1,59 +0,0 @@ -#!/sbin/openrc-run -# Copyright 1999-2012 Gentoo Foundation -# Distributed under the terms of the GNU General Public License, v2 or later - -STARTUP_MODE='save'; - -extra_started_commands="clear save deactivated" -command="/usr/bin/tpmd" -command_args="-o tss -g tss" - -depend() { - use logger - after coldplug -} - -checkconfig() { - lsmod | grep -q "^tpmd_dev\b" \ - || modprobe tpmd_dev &>/dev/null \ - || eerror "Failed to load module tpmd_dev"; - - if [ ! -c /dev/tpm ] && [ ! -c /dev/tpm0 ] ; then - eerror "No TPM device found!" - return 1 - fi - return 0 -} - -start() { - ebegin "Starting tpm-emulator daemon with mode '$STARTUP_MODE' (tpmd)" - checkconfig || eend $? - checkpath -d -m 0775 -o tss /var/run/tpm - start-stop-daemon --start --exec "${command}" -- ${command_args} $STARTUP_MODE > /dev/null - eend $? -} - -stop() { - ebegin "Stopping tpm-emulator daemon (tpmd)" - start-stop-daemon --stop --exec "${command}" -- ${command_args} > /dev/null - eend $? -} - -clear() { - STARTUP_MODE='clear'; - stop - start -} - -save() { - STARTUP_MODE='save'; - stop - start -} - -deactivated() { - STARTUP_MODE='deactivated'; - stop - start -} - |