From eec193967f7aca562f7d99eaf5d6177f08e9a99e Mon Sep 17 00:00:00 2001 From: Michael Janczyk Date: Sun, 11 Apr 2010 23:08:47 +0200 Subject: virtualization plugin, now with calculation of mem, run-vmgrid and run-virt uses it --- os-plugins/plugins/vmgrid/files/run-vmgrid.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'os-plugins/plugins/vmgrid/files/run-vmgrid.sh') 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 ] \c" + echo -e "Usage: run-vmgrid.sh [-g] [--mem ] \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) -- cgit v1.2.3-55-g7522