From: Ewan Mellor Date: Thu, 11 Jan 2007 18:55:18 +0000 (+0000) Subject: Source a file called 'vtpm-impl.alt' if it exists. X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~15405^2~41 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=2b1f4094a6bb571855c2a1ca54f5e6ded34913c5;p=xen.git Source a file called 'vtpm-impl.alt' if it exists. Signed-off-by: Stefan Berger --- diff --git a/tools/examples/vtpm-common.sh b/tools/examples/vtpm-common.sh index bf50f323e3..8af4f321e9 100644 --- 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 () {