From cfc6a5a0bc1cebe438fb9a48ac09e64cfc93ef34 Mon Sep 17 00:00:00 2001 From: Michael Janczyk Date: Wed, 4 Nov 2009 13:17:42 +0000 Subject: vmchooser /w new path /etc/opt/openslx/plugins/vmchooser git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@3194 95ad53e4-c205-0410-b2fa-d234c58c8868 --- os-plugins/plugins/vmchooser/files/run-virt.sh | 26 +++++++++++++++----------- 1 file changed, 15 insertions(+), 11 deletions(-) (limited to 'os-plugins/plugins/vmchooser/files/run-virt.sh') diff --git a/os-plugins/plugins/vmchooser/files/run-virt.sh b/os-plugins/plugins/vmchooser/files/run-virt.sh index 4d210b88..d7a587f2 100644 --- a/os-plugins/plugins/vmchooser/files/run-virt.sh +++ b/os-plugins/plugins/vmchooser/files/run-virt.sh @@ -25,7 +25,7 @@ PLUGINCONFDIR=${OPENSLX_DEFAULT_CONFDIR}/plugins/vmchooser . ${PLUGINCONFDIR}/run-virt.include # Sanity checks -############################################################################### +################################################################################ # Theck for running in graphical environment otherwise no much use here [ -z "$DISPLAY" ] && echo -e "\n\tStart only within a graphical desktop!\n" \ @@ -36,10 +36,11 @@ xml=$1 [ -e "${xml}" ] || { echo -e "\n\tNo XML file given!\n"; exit 1; } # Read needed variables from XML file -############################################################################### +################################################################################ # File name of the image -imagename=$(grep -io "&1 | awk -F "-> *" '{print $2}') + rightsfile=$(ls -lh ${diskfile} 2>&1 | awk -F '-> *' '{print $2}') rightsfile=${vmdir}/${rightsfile} filecheck=$(LANG=us ls -lh ${rightsfile} 2>&1) fi @@ -227,7 +231,7 @@ amixer -q sset Master 80% unmute 2>/dev/null amixer -q sset PCM 80% unmute 2>/dev/null amixer -q sset CD 80% unmute 2>/dev/null amixer -q sset Headphone 80% unmute 2>/dev/null -amixer -q sset Front 80% umute 2>/dev/null # In SUSE 11.0 it's Headphone +amixer -q sset Front 80% umute 2>/dev/null # in SUSE 11.0 it's headphone amixer -q sset Speaker 0 mute 2>/dev/null # annoying built-in speaker writelog "finished\n" -- cgit v1.2.3-55-g7522