ia64/xen-unstable

view tools/examples/vtpm @ 10098:48c0f5489d44

Remove Emacs variables settings from tail of our Linux files.
Signed-off-by: Keir Fraser <keir@xensource.com>
author kaf24@firebug.cl.cam.ac.uk
date Thu May 18 11:39:03 2006 +0100 (2006-05-18)
parents 8685b64538fa
children 9ec0b4f10b4f
line source
1 #!/bin/sh
3 dir=$(dirname "$0")
4 . "$dir/vtpm-hotplug-common.sh"
6 vtpm_fatal_error=0
8 case "$command" in
9 add)
10 vtpm_create_instance
11 ;;
12 online)
13 vtpm_create_instance
14 ;;
15 remove)
16 vtpm_remove_instance
17 ;;
18 offline)
19 vtpm_remove_instance
20 ;;
21 esac
23 if [ $vtpm_fatal_error -eq 0 ]; then
24 log debug "Successful vTPM operation '$command'."
25 success
26 else
27 fatal "Error while executing vTPM operation '$command'."
28 fi