Source a file called 'vtpm-impl.alt' if it exists.
authorEwan Mellor <ewan@xensource.com>
Thu, 11 Jan 2007 18:55:18 +0000 (18:55 +0000)
committerEwan 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

index bf50f323e36b7c6f05256bc21ca4ed0d28233b17..8af4f321e98b64d261ab1cec3a9c46cc669b7f85 100644 (file)
@@ -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 () {