From 3d653d5a03e6115c34abfa12230409db9ef26d42 Mon Sep 17 00:00:00 2001 From: Michael Janczyk Date: Thu, 13 Apr 2006 17:35:52 +0000 Subject: defaults changed to full path winconfig changed to not use res w/ vmplayer locations not needed? \r added to old runvmware new runvmware bigfixes git-svn-id: http://svn.openslx.org/svn/openslx/ld4@188 95ad53e4-c205-0410-b2fa-d234c58c8868 --- vmware/runvmware | 22 +++++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) (limited to 'vmware/runvmware') diff --git a/vmware/runvmware b/vmware/runvmware index 6a15d939..d8fe7e6e 100755 --- a/vmware/runvmware +++ b/vmware/runvmware @@ -4,10 +4,10 @@ # X Stations (v4) # # Author(s): Dirk von Suchodoletz , 18-03-2006 -# Michael Janczyk , 06-04-2006 +# Michael Janczyk , 13-04-2006 # Copyright: (c) 2003, 2006 - RZ Universitaet Freiburg # -version=pre0.14; last_changes=06-04-06 +version=pre0.14; last_changes=13-04-06 ################################################################################ @@ -78,7 +78,7 @@ runvmwareconfheader () { floppy1.present = \"${floppyb}\" floppy1.fileType = \"file\" - floppy1.fileName = \"${filename}\" + floppy1.fileName = \"${floppybname}\" floppy1.startConnected = \"TRUE\" @@ -124,6 +124,7 @@ preferencesheader () { pref.exchangeSelections = \"TRUE\" pref.hotkey.shift = \"TRUE\" pref.tip.startup = \"FALSE\" + pref.vmplayer.exit.vmAction = \"poweroff\" pref.vmplayer.fullscreen.autohide = \"TRUE\" pref.vmplayer.webUpdateOnStartup = \"FALSE\" prefvmx.defaultVMPath = \"${vmhome}\" @@ -142,6 +143,9 @@ preferencesheader () { # declaration of default variables +# first read variables from machine-setup +. /etc/machine-setup + # hardware variables # temporary disk space for logs, etc... export tmpdir=/tmp/${USER} @@ -162,7 +166,7 @@ cdr_2_name="/dev/cdrom2" floppya="FALSE" floppyb="FALSE" # place for the virtual floppy "B:" -filename=`mount | grep -i "/tmp/${clientip}-fd0.img" | awk '{print $1}'` +floppybname="/tmp/${clientip}-fd0.img" # VMware variables @@ -200,7 +204,7 @@ filecheck= # command line variables # start with this this default commmand line options + extra -defaults=$(grep -v "#.*" ${vmtempl}/ostype) +defaults=$(grep -v "#.*" ${vmtempl}/defaults) # add command line opts to defaults # defaults will be overwritten by command line options lineopts=( `echo ${defaults} $@` ) @@ -381,7 +385,7 @@ filecheck () { #### INTERPRET COMMAND LINE OPTIONS ############################################ # print help if no clo -if [ $# = "0" ]; then +if [ ${nofclopt} = "0" ]; then help exit 0 fi @@ -678,11 +682,15 @@ preferencesheader runvmwareconfheader # include file which is given via command line -. ${include} +[ -n "${include}" ] && . ${include} # copy VMware (-Player) bios cp ${vmtempl}/nvram.5.0 ${tmpdir}/nvram 2>&1 >/dev/null +# adjust volume +amixer -q sset Master 28 unmute +amixer -q sset PCM 28 unmute + -- cgit v1.2.3-55-g7522