summaryrefslogtreecommitdiffstats
path: root/os-plugins/plugins/vmgrid/files/run-vmgrid.sh
diff options
context:
space:
mode:
authorMichael Janczyk2010-04-11 23:08:47 +0200
committerMichael Janczyk2010-04-11 23:08:47 +0200
commiteec193967f7aca562f7d99eaf5d6177f08e9a99e (patch)
tree34bd6d650c2edc705f67769939a58c646492d017 /os-plugins/plugins/vmgrid/files/run-vmgrid.sh
parentqemukvm network configuration (diff)
downloadcore-eec193967f7aca562f7d99eaf5d6177f08e9a99e.tar.gz
core-eec193967f7aca562f7d99eaf5d6177f08e9a99e.tar.xz
core-eec193967f7aca562f7d99eaf5d6177f08e9a99e.zip
virtualization plugin, now with calculation of mem, run-vmgrid and run-virt uses it
Diffstat (limited to 'os-plugins/plugins/vmgrid/files/run-vmgrid.sh')
-rw-r--r--os-plugins/plugins/vmgrid/files/run-vmgrid.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/os-plugins/plugins/vmgrid/files/run-vmgrid.sh b/os-plugins/plugins/vmgrid/files/run-vmgrid.sh
index 5e64b4cd..1501749e 100644
--- a/os-plugins/plugins/vmgrid/files/run-vmgrid.sh
+++ b/os-plugins/plugins/vmgrid/files/run-vmgrid.sh
@@ -53,19 +53,19 @@ writelog () {
### Get XML file and dir
################################################################################
-# check if forcemem or graphical mode set
+# check if mem or graphical mode set
headless=1
while [ $# -gt 0 ]; do
case "$1" in
-h|--help)
- echo -e "Usage: run-vmgrid.sh [-g] [--forcemem <memorysize in MB>] \c"
+ echo -e "Usage: run-vmgrid.sh [-g] [--mem <memorysize in MB>] \c"
echo -e "[/path/]filename[.xml]"
exit
;;
-g)
headless=0
;;
- --forcemem)
+ --mem)
# get a result which can be divided through 4
forcemem=$2
echo $2 | grep -q '[1-9][0-9]\{2,3\}$' && forcemem=$(expr $2 / 4 \* 4)