diff options
author | Michael Janczyk | 2006-04-13 19:35:52 +0200 |
---|---|---|
committer | Michael Janczyk | 2006-04-13 19:35:52 +0200 |
commit | 3d653d5a03e6115c34abfa12230409db9ef26d42 (patch) | |
tree | d628be2fe45346759cfd09569d4773acc3e1004d /vmware/winconfig | |
parent | Modelines related stuff deleted (diff) | |
download | core-3d653d5a03e6115c34abfa12230409db9ef26d42.tar.gz core-3d653d5a03e6115c34abfa12230409db9ef26d42.tar.xz core-3d653d5a03e6115c34abfa12230409db9ef26d42.zip |
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
Diffstat (limited to 'vmware/winconfig')
-rw-r--r-- | vmware/winconfig | 20 |
1 files changed, 14 insertions, 6 deletions
diff --git a/vmware/winconfig b/vmware/winconfig index 750dd22c..8ac8d149 100644 --- a/vmware/winconfig +++ b/vmware/winconfig @@ -8,6 +8,18 @@ hostres=$(xvidtune -show | grep -ve "^$") x_param=$(echo "${hostres}" | awk '{print $3}') y_param=$(echo "${hostres}" | awk '{print $7}') +resolution=" + <resolution_x param=\"${x_param}\">\r + </resolution_x>\r + <resolution_y param=\"${y_param}\">\r + </resolution_y>\r" + + +# VMplayer does not need resolution change +if [ `which vmplayer 2>/dev/null` ] && [ -z "${vmrun}" ] \ + || [ "${vmrun}" = "vmplayer" ]; then + resolution= +fi # sync is needed to ensure that data is really written to virtual disk sync @@ -15,13 +27,9 @@ echo -e "<?xml version=\"1.0\" encoding=\"utf-8\"?>\r <settings>\r <eintrag>\r <computername param=\"${hostname}\">\r - </computername> - <resolution_x param=\"${x_param}\">\r - </resolution_x>\r - <resolution_y param=\"${y_param}\">\r - </resolution_y>\r + </computername>\r <username param=\"${USER}\">\r - </username>\r + </username>\r${resolution} </eintrag>\r </settings>\r" \ > /media/loop0/config.xml |