summaryrefslogtreecommitdiffstats
path: root/vmware/winconfig
blob: 676fe141897b7b784402ac82814bef4506a51766 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#
# this is an include file for runvmware
#
# create Windows config file


# NO LONGER NEEDED !!!!!
# definition of some resolution variables
#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
# insert '\r${resolution}' after </username> when resolution needed
sync
echo -e "<?xml version=\"1.0\" encoding=\"utf-8\"?>\r
<settings>\r
  <eintrag>\r
    <computername param=\"${hostname}\">\r
    </computername>\r
    <username param=\"${USER}\">\r
    </username>
  </eintrag>\r
</settings>\r" \
> /tmp/loop0/config.xml

sync