From 8f47c4882b657de73801dab06b173ef6d9865e4f Mon Sep 17 00:00:00 2001 From: Dirk Date: Wed, 6 Jul 2011 16:12:38 +0200 Subject: Adding dummy frontend for several emulators to be called via vmchooser. --- src/os-plugins/plugins/vmchooser/files/run-virt.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/os-plugins/plugins/vmchooser/files/run-virt.sh') diff --git a/src/os-plugins/plugins/vmchooser/files/run-virt.sh b/src/os-plugins/plugins/vmchooser/files/run-virt.sh index 37db0c23..c4866212 100644 --- a/src/os-plugins/plugins/vmchooser/files/run-virt.sh +++ b/src/os-plugins/plugins/vmchooser/files/run-virt.sh @@ -133,14 +133,14 @@ if ! [ -r "${xmlfile}" ]; then exit 1 fi -# Test if XML file +# test if XML file if ! grep '/dev/null 2>&1; then writelog \ "Submitted configuration file ${xmlfile} seems to have wrong XML format" exit 1 fi -# Theck for running in graphical environment otherwise no much use here +# check for running in graphical environment otherwise no much use here [ -z "$DISPLAY" ] && echo -e "\n\tStart only within a graphical desktop!\n" \ && exit 1 @@ -207,11 +207,11 @@ vm_shortname=$(basename ${xmlfile%.xml} | sed -e "s, ,-,g") # vm_name = displayname, define for old scripts displayname=${vm_name} -# Image is for the following virtual machine +# image is for the following virtual machine xmlvirt=$(grep -o 'virtualmachine param=.*"' ${xmlfile} \ | sed -e "s/&.*;/; /g" | awk -F '"' '{print $2}') -# Make a guess from the filename extension if ${xmlvirt} is empty +# make a guess from the filename extension if ${xmlvirt} is empty # (not set within the XML file) # TODO: implement possibility to submit own configuration files if [ -z "${xmlvirt}" ] && [ -n "${additional_config}" ]; then -- cgit v1.2.3-55-g7522