diff options
author | Michael Janczyk | 2010-04-11 23:05:28 +0200 |
---|---|---|
committer | Michael Janczyk | 2010-04-11 23:05:28 +0200 |
commit | 1125aeed09b614136ce01446b17981965bfce22a (patch) | |
tree | 7c71645507f360d64a60c36d72625e9018686877 /os-plugins/plugins/vmgrid/files/run-vmgrid.sh | |
parent | qemu network scripts and sudoers, should work now (diff) | |
download | core-1125aeed09b614136ce01446b17981965bfce22a.tar.gz core-1125aeed09b614136ce01446b17981965bfce22a.tar.xz core-1125aeed09b614136ce01446b17981965bfce22a.zip |
virtualization plugin, now with calculation of mem, run-vmgrid and run-virt use them
Diffstat (limited to 'os-plugins/plugins/vmgrid/files/run-vmgrid.sh')
-rw-r--r-- | os-plugins/plugins/vmgrid/files/run-vmgrid.sh | 6 |
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) |