From: Stefan Berger Subject: [PATCH] [HOTPLUG] Source vtpm-impl.alt if it exists Date: Tue, 09 Jan 2007 09:17:06 -0500 Message-ID: <1168352226.17321.1.camel@lt2.watson.ibm.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-IMcCtshPRMVyV0nP4Zgg" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Xen-devel Cc: ewan@xensource.com List-Id: xen-devel@lists.xenproject.org --=-IMcCtshPRMVyV0nP4Zgg Content-Type: text/plain Content-Transfer-Encoding: 7bit Source a file called 'vtpm-impl.alt' if it exists. Signed-off-by: Stefan Berger --=-IMcCtshPRMVyV0nP4Zgg Content-Disposition: attachment; filename=vtpm_impl_alt.diff Content-Type: text/x-patch; name=vtpm_impl_alt.diff; charset=UTF-8 Content-Transfer-Encoding: 7bit Index: root/xen-unstable.hg/tools/examples/vtpm-common.sh =================================================================== --- root.orig/xen-unstable.hg/tools/examples/vtpm-common.sh +++ 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 () { --=-IMcCtshPRMVyV0nP4Zgg Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --=-IMcCtshPRMVyV0nP4Zgg--