Sophie

Sophie

distrib > CentOS > 5 > x86_64 > by-pkgid > 8763144197db7dd837c794bb2da1fedf > files > 29

xen-3.0.3-142.el5_9.3.x86_64.rpm

#!/bin/sh

dir=$(dirname "$0")
. "$dir/vtpm-hotplug-common.sh"

vtpm_fatal_error=0

case "$command" in
  add)
    vtpm_create_instance
  ;;
  remove)
    vtpm_remove_instance
  ;;
esac

if [ $vtpm_fatal_error -eq 0 ]; then
	log debug "Successful vTPM operation '$command'."
	success
else
	fatal "Error while executing vTPM operation '$command'."
fi