File: vtpm

package info (click to toggle)
xen-common 4.0.0-1
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 876 kB
  • ctags: 362
  • sloc: sh: 3,061; makefile: 403; perl: 186; python: 174; xml: 2
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