From 2acc8944922161d5891df49430638f4a3050df0b Mon Sep 17 00:00:00 2001 From: Dirk von Suchodoletz Date: Mon, 22 Dec 2008 22:32:05 +0000 Subject: Just explained the use of the filter script: It allows to dynamically display lists of vm sessions depending on the user just logged in, date, time, ... (if re-scripted appropriately) git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@2450 95ad53e4-c205-0410-b2fa-d234c58c8868 --- os-plugins/plugins/vmchooser/files/xmlfilter.sh | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) (limited to 'os-plugins') diff --git a/os-plugins/plugins/vmchooser/files/xmlfilter.sh b/os-plugins/plugins/vmchooser/files/xmlfilter.sh index 4e056482..92c5807e 100755 --- a/os-plugins/plugins/vmchooser/files/xmlfilter.sh +++ b/os-plugins/plugins/vmchooser/files/xmlfilter.sh @@ -1,12 +1,15 @@ #!/bin/bash +# Copyright (c) 2008 - Rechenzentrum Uni Freiburg, OpenSLX GmbH # -# This script is a filter for the xml-files available -# -# currently: +# This script simply filters xml-files (taking the path to these files in $1). # You might modify it in any way to match your needs, e.g. ask some database +# instead. You can re-implement it in any other programming language too. You +# simply have to return a list of proper xml files to be interpreted by the +# vmchooser binary). +# +# currently: # - filter for slxgrp (which comes from /etc/machine-setup) # - if [ -f /etc/opt/openslx/vmchooser-stage3.conf ]; then . /etc/opt/openslx/vmchooser-stage3.conf fi @@ -15,8 +18,8 @@ if [ -n ${vmchooser_env} ]; then for FILE in $1/*.xml do # filter all xmls with pool-param not equal to slxgroup - if [ `grep "