Files
xen/tools/examples/vtpm
T
cl349@firebug.cl.cam.ac.uk 55ee36debf tpm: Fixes and cleanup
Fix a recently found problem in tpm.c, move the vtpm sysfs
entry to /sys/device/platform/tpm_vtpm and add locking in
the vtpm hotplug script.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
2006-02-21 17:13:30 +00:00

28 lines
360 B
Bash

#!/bin/sh
dir=$(dirname "$0")
. "$dir/vtpm-common.sh"
vtpm_fatal_error=0
case "$command" in
add)
vtpm_create_instance
;;
online)
vtpm_create_instance
;;
remove)
vtpm_remove_instance
;;
offline)
vtpm_remove_instance
;;
esac
if [ $vtpm_fatal_error -eq 0 ]; then
log debug "Successful vTPM operation '$command'."
success
fi