summaryrefslogtreecommitdiffstats
path: root/src/os-plugins/plugins/vmchooser/files/run-virt.sh
diff options
context:
space:
mode:
authorDirk2011-07-06 16:12:38 +0200
committerDirk2011-07-06 16:12:38 +0200
commit8f47c4882b657de73801dab06b173ef6d9865e4f (patch)
tree11863de737972fa6979c3642982b8315860ce47f /src/os-plugins/plugins/vmchooser/files/run-virt.sh
parentAdditional OStypes for virtual machines ... (diff)
downloadcore-8f47c4882b657de73801dab06b173ef6d9865e4f.tar.gz
core-8f47c4882b657de73801dab06b173ef6d9865e4f.tar.xz
core-8f47c4882b657de73801dab06b173ef6d9865e4f.zip
Adding dummy frontend for several emulators to be called via vmchooser.
Diffstat (limited to 'src/os-plugins/plugins/vmchooser/files/run-virt.sh')
-rw-r--r--src/os-plugins/plugins/vmchooser/files/run-virt.sh8
1 files changed, 4 insertions, 4 deletions
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 '<?xml' "${xmlfile}" >/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