summaryrefslogtreecommitdiffstats
path: root/os-plugins/plugins/vmgrid
diff options
context:
space:
mode:
authorMichael Janczyk2010-03-21 19:50:12 +0100
committerMichael Janczyk2010-03-21 19:50:12 +0100
commit994aa36c095470f1c163e32b28fa324f7376f127 (patch)
treea1d0da469c9b0dbb390d56943a8c014a35aa7d00 /os-plugins/plugins/vmgrid
parentadded rw share support for vmgrid and virtualbox (diff)
downloadcore-994aa36c095470f1c163e32b28fa324f7376f127.tar.gz
core-994aa36c095470f1c163e32b28fa324f7376f127.tar.xz
core-994aa36c095470f1c163e32b28fa324f7376f127.zip
qemukvm angepasst... geht noch nicht :(
Diffstat (limited to 'os-plugins/plugins/vmgrid')
-rw-r--r--os-plugins/plugins/vmgrid/files/run-vmgrid.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/os-plugins/plugins/vmgrid/files/run-vmgrid.sh b/os-plugins/plugins/vmgrid/files/run-vmgrid.sh
index 386695bf..4a09f237 100644
--- a/os-plugins/plugins/vmgrid/files/run-vmgrid.sh
+++ b/os-plugins/plugins/vmgrid/files/run-vmgrid.sh
@@ -49,6 +49,7 @@ PLUGINCONFVMGRID=${PLUGINCONFROOT}/vmgrid
################################################################################
# check if forcemem set
+# TODO: klappt noch nicht immer :(
if [ "$1" = "--forcemem" ]; then
forcemem=$2
xmlfile=${3##*/}
@@ -85,7 +86,7 @@ if [ $runningvms -le 0 ]; then
exit 1
fi
# check if vmchooser plugin installed
-if [ ${vmchooser_active} = "1" 2>/dev/null] && [ ${runningvms} -gt 1 ]; then
+if [ ${vmchooser_active} -eq 1 2>/dev/null ] && [ ${runningvms} -gt 1 ]; then
# only allow one instance of vmgrid
writelog "Already 1 VMs running and vmchooser plugin is active."
writelog "Can't start ${xmlfile}, exiting!"
@@ -109,7 +110,6 @@ fi
################################################################################
cat <<EOL
-
__ __
.----.--.--.-----.___.--.--.--------.-----.----.|__|.--| |
| _| | | |___| | | | _ | _|| || _ |