direct-io.hg

changeset 13337:7ce714d3a9ac

Source a file called 'vtpm-impl.alt' if it exists.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
author Ewan Mellor <ewan@xensource.com>
date Thu Jan 11 18:55:18 2007 +0000 (2007-01-11)
parents 77041741529c
children 09e3072f71e6
files tools/examples/vtpm-common.sh
line diff
     1.1 --- a/tools/examples/vtpm-common.sh	Thu Jan 11 18:54:09 2007 +0000
     1.2 +++ b/tools/examples/vtpm-common.sh	Thu Jan 11 18:55:18 2007 +0000
     1.3 @@ -24,7 +24,9 @@ VTPMDB="/etc/xen/vtpm.db"
     1.4  
     1.5  #In the vtpm-impl file some commands should be defined:
     1.6  #      vtpm_create, vtpm_setup, vtpm_start, etc. (see below)
     1.7 -if [ -r "$dir/vtpm-impl" ]; then
     1.8 +if [ -r "$dir/vtpm-impl.alt" ]; then
     1.9 +	. "$dir/vtpm-impl.alt"
    1.10 +elif [ -r "$dir/vtpm-impl" ]; then
    1.11  	. "$dir/vtpm-impl"
    1.12  else
    1.13  	function vtpm_create () {