From 2e9afefac0cb6c6134e12d6921ea9d4acae49e9f Mon Sep 17 00:00:00 2001 From: Volker Uhrig Date: Thu, 15 May 2008 17:11:57 +0000 Subject: * get needed data from xml file when vmchooser got changed not tested yet git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@1770 95ad53e4-c205-0410-b2fa-d234c58c8868 --- .../plugins/vmware/files/runvmware-player-v1 | 44 ++++++++++++++-------- .../plugins/vmware/files/runvmware-player-v2 | 44 ++++++++++++++-------- 2 files changed, 58 insertions(+), 30 deletions(-) (limited to 'os-plugins/plugins/vmware') diff --git a/os-plugins/plugins/vmware/files/runvmware-player-v1 b/os-plugins/plugins/vmware/files/runvmware-player-v1 index eaa35b0e..a3330bf5 100644 --- a/os-plugins/plugins/vmware/files/runvmware-player-v1 +++ b/os-plugins/plugins/vmware/files/runvmware-player-v1 @@ -2,6 +2,8 @@ # # Description: Script for preparing VMware environment Diskless # X Stations and interactive session chooser (v4) +# Gets a xml file, reads needed information from it and +# orwards it into B drive of vmplayer # # Author(s): see project authors file # letzte Änderung Volker, 17 .Feb 2008 @@ -11,6 +13,32 @@ # ################################################################################ +################################################################################ +## +## Read needed variables from XML file +## +################################################################################ +$xml = $1 + +# file name of the image +imagename=$(grep -i " ${xml}.utf +short_description=$(grep "short_description param=\"" ${xml} + sed -e "s%&.*;%; %g" | awk -F "\"" '{print $2}') +# if ${short_description} not defined use ${image} +short_description=${short_description:-"${image}"} +displayname=${short_description} + +# Definition of the client system +vmostype=$(grep -i " ${xml}.utf +short_description=$(grep "short_description param=\"" ${xml} + sed -e "s%&.*;%; %g" | awk -F "\"" '{print $2}') +# if ${short_description} not defined use ${image} +short_description=${short_description:-"${image}"} +displayname=${short_description} + +# Definition of the client system +vmostype=$(grep -i "