diff options
author | Michael Mair-Keimberger (asterix) <m.mairkeimberger@gmail.com> | 2016-07-03 19:22:59 +0200 |
---|---|---|
committer | Patrice Clement <monsieurp@gentoo.org> | 2016-07-07 07:18:50 +0000 |
commit | 4f7b2b7290b8275eec8e84bf9b50a122c5169e9a (patch) | |
tree | 51b3a049d80630ef942ca0fa34e597c5e6f3362f /app-crypt | |
parent | app-crypt/pinentry: remove unused patch (diff) | |
download | gentoo-4f7b2b7290b8275eec8e84bf9b50a122c5169e9a.tar.gz gentoo-4f7b2b7290b8275eec8e84bf9b50a122c5169e9a.tar.bz2 gentoo-4f7b2b7290b8275eec8e84bf9b50a122c5169e9a.zip |
app-crypt/tpm-emulator: remove unused patches
Closes: https://github.com/gentoo/gentoo/pull/1826
Signed-off-by: Patrice Clement <monsieurp@gentoo.org>
Diffstat (limited to 'app-crypt')
-rw-r--r-- | app-crypt/tpm-emulator/files/tpm-emulator.initd | 54 | ||||
-rw-r--r-- | app-crypt/tpm-emulator/files/tpm-emulator.udev | 1 |
2 files changed, 0 insertions, 55 deletions
diff --git a/app-crypt/tpm-emulator/files/tpm-emulator.initd b/app-crypt/tpm-emulator/files/tpm-emulator.initd deleted file mode 100644 index 6b2a648ae87c..000000000000 --- a/app-crypt/tpm-emulator/files/tpm-emulator.initd +++ /dev/null @@ -1,54 +0,0 @@ -#!/sbin/openrc-run -# Copyright 1999-2005 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Id$ - -opts="save clear deactivated" - -STARTUP_MODE='save'; - - -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 $? - start-stop-daemon --start --chuid tss --exec /usr/sbin/tpmd $STARTUP_MODE > /dev/null - eend $? -} - -save() { - STARTUP_MODE='save'; - svc_restart -} - -clear() { - STARTUP_MODE='clear'; - svc_restart -} - -deactivated() { - STARTUP_MODE='deactivated'; - svc_restart -} - -stop() { - ebegin "Stopping tpm-emulator daemon (tpmd)" - start-stop-daemon --stop --exec /usr/sbin/tpmd --user tss > /dev/null - eend $? -} diff --git a/app-crypt/tpm-emulator/files/tpm-emulator.udev b/app-crypt/tpm-emulator/files/tpm-emulator.udev deleted file mode 100644 index ca053b9d36d3..000000000000 --- a/app-crypt/tpm-emulator/files/tpm-emulator.udev +++ /dev/null @@ -1 +0,0 @@ -KERNEL=="tpm", NAME="%k", SYMLINK+="tpm0", GROUP="tss", MODE="0660" |