Skip to contentSkip to conversation

Source vtpm-impl.alt if it exists

PATCH Applied Stefan Berger 2 participants 2 messages Jan 9, 2007 – Jan 11, 2007

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Source vtpm-impl.alt if it exists

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

xen-unstable.hg/tools/examples/vtpm-common.sh +3 -1
Index: root/xen-unstable.hg/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 () {

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel