From e437b8813f2a84ccffa3a75ba1f534b38ce72b9c Mon Sep 17 00:00:00 2001 From: Michael Janczyk Date: Tue, 6 Apr 2010 20:01:24 +0200 Subject: cumulative commit of local branch, many changes regarding virtualization --- os-plugins/plugins/vmchooser/files/run-virt.sh | 63 ++++++++++++++++++-------- 1 file changed, 43 insertions(+), 20 deletions(-) (limited to 'os-plugins/plugins/vmchooser/files') diff --git a/os-plugins/plugins/vmchooser/files/run-virt.sh b/os-plugins/plugins/vmchooser/files/run-virt.sh index 5733ee41..9bc31396 100644 --- a/os-plugins/plugins/vmchooser/files/run-virt.sh +++ b/os-plugins/plugins/vmchooser/files/run-virt.sh @@ -40,13 +40,14 @@ xml=$1 ################################################################################ # File name of the image -imagename=$(grep -io "/dev/null| grep -ve "^$") xres=$(echo "${hostres}" | awk '{print $3}') @@ -222,11 +243,11 @@ writelog () # Logo for console cat < to be changed (vmchooser adapts the file content!?) -echo "Please fix the config.xml generation" +#TODO: wozu echo? +#echo "Please fix the config.xml generation" cp ${xml} ${PLUGINCONFDIR}/fd-loop/config.xml # Check if virtual machine container file exists -filecheck +#filecheck # Get all virtual machine specific stuff from the respective include file -if [ -e ${PLUGINCONFROOT}/${virt_mach}/run-${virt_mach}.include ] ; then - . ${PLUGINCONFROOT}/${virt_mach}/run-${virt_mach}.include +if [ -e ${PLUGINCONFROOT}/${virt_mach}/run-virt.include ] ; then + self=${virt_mach} + . ${PLUGINCONFROOT}/${virt_mach}/run-virt.include # start a windowmanager for easier handling # (expect problems /w windows opening in background /w vmware without wm) for dm in xfwm4 metacity openbox blackbox kwin fvwm2 ; do @@ -266,7 +289,7 @@ if [ -e ${PLUGINCONFROOT}/${virt_mach}/run-${virt_mach}.include ] ; then fi done ${VIRTCMD} ${VIRTCMDOPTS} - writelog "Bye.\n" + writelog "Bye." exit 0 else writelog "Failed because of missing ${virt_mach} plugin." -- cgit v1.2.3-55-g7522