projects
/
xen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a8ca4c2
)
Source a file called 'vtpm-impl.alt' if it exists.
author
Ewan Mellor
<ewan@xensource.com>
Thu, 11 Jan 2007 18:55:18 +0000
(18:55 +0000)
committer
Ewan Mellor
<ewan@xensource.com>
Thu, 11 Jan 2007 18:55:18 +0000
(18:55 +0000)
Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
tools/examples/vtpm-common.sh
patch
|
blob
|
history
diff --git
a/tools/examples/vtpm-common.sh
b/tools/examples/vtpm-common.sh
index bf50f323e36b7c6f05256bc21ca4ed0d28233b17..8af4f321e98b64d261ab1cec3a9c46cc669b7f85 100644
(file)
--- a/
tools/examples/vtpm-common.sh
+++ b/
tools/examples/vtpm-common.sh
@@
-24,7
+24,9
@@
VTPMDB="/etc/xen/vtpm.db"
#In the vtpm-impl file some commands should be defined:
# vtpm_create, vtpm_setup, vtpm_start, etc. (see below)
-if [ -r "$dir/vtpm-impl" ]; then
+if [ -r "$dir/vtpm-impl.alt" ]; then
+ . "$dir/vtpm-impl.alt"
+elif [ -r "$dir/vtpm-impl" ]; then
. "$dir/vtpm-impl"
else
function vtpm_create () {