File: vtpm

package info (click to toggle)
xen-common 3.2.0-2
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 680 kB
  • ctags: 279
  • sloc: sh: 2,708; makefile: 288; perl: 186; python: 170; xml: 8
file content (22 lines) | stat: -rw-r--r-- 351 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/bash

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