diff options
author | Dirk von Suchodoletz | 2009-02-19 00:32:30 +0100 |
---|---|---|
committer | Dirk von Suchodoletz | 2009-02-19 00:32:30 +0100 |
commit | 61a357c17f19e56c1fdbd8b0f51339bdd52f2d5a (patch) | |
tree | f755883d0cfb85d85c0050456ec81ac53c81a32a /os-plugins/plugins/vmware/XX_vmware.sh | |
parent | bugfix splashy + now /w splashy.shutdown ;) (diff) | |
download | core-61a357c17f19e56c1fdbd8b0f51339bdd52f2d5a.tar.gz core-61a357c17f19e56c1fdbd8b0f51339bdd52f2d5a.tar.xz core-61a357c17f19e56c1fdbd8b0f51339bdd52f2d5a.zip |
More fixes for run-virt.sh environment ...
git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@2611 95ad53e4-c205-0410-b2fa-d234c58c8868
Diffstat (limited to 'os-plugins/plugins/vmware/XX_vmware.sh')
-rw-r--r-- | os-plugins/plugins/vmware/XX_vmware.sh | 36 |
1 files changed, 8 insertions, 28 deletions
diff --git a/os-plugins/plugins/vmware/XX_vmware.sh b/os-plugins/plugins/vmware/XX_vmware.sh index 6aa520a2..190f2322 100644 --- a/os-plugins/plugins/vmware/XX_vmware.sh +++ b/os-plugins/plugins/vmware/XX_vmware.sh @@ -207,10 +207,8 @@ $(ipcalc -m $vmip/$vmpx|sed s/.*=//) {" \ >>/mnt/etc/init.d/boot.slx # disable VMware swapping - echo '.encoding = "UTF-8" - prefvmx.useRecommendedLockedMemSize = "TRUE" - prefvmx.minVmMemPct = "100"' | \ - sed -e "s/^ *//" \ + echo -e '.encoding = "UTF-8"\nprefvmx.minVmMemPct = "100" +prefvmx.useRecommendedLockedMemSize = "TRUE"' | sed -e "s/^ *//" \ >/mnt/etc/vmware/config # copy version depending files - the vmchooser expects for every virtua- @@ -226,32 +224,14 @@ $(ipcalc -m $vmip/$vmpx|sed s/.*=//) {" \ /mnt/var/X11R6/bin/vmware fi - # affects only kernel and config depending configuration of not # local installed versions - if [ "${vmware_kind}" != "local" ]; then - cp /mnt/opt/openslx/plugin-repo/vmware/${vmware_kind}/config \ - /mnt/etc/vmware - chmod 644 /mnt/etc/vmware/config - fi - - # write version information for image problem (v2 images don't run - # on v1 players) - case ${vmware_kind} in - "vmpl1.0") - echo "vmplversion=1" >/mnt/etc/vmware/version - ;; - "vmpl2.0") - echo "vmplversion=2.0" >/mnt/etc/vmware/version - ;; - "vmpl2.5") - echo "vmplversion=2.5" >/mnt/etc/vmware/version - ;; - "local*") - . /mnt/opt/openslx/plugin-repo/vmware/local/versioninfo.txt - echo "vmplversion=${vmversion}" > /mnt/etc/vmware/version - ;; - esac + cp /mnt/opt/openslx/plugin-repo/vmware/${vmware_kind}/config \ + /mnt/etc/vmware/config + chmod 644 /mnt/etc/vmware/config + echo "# stage1 variables" >>/mnt/etc/vmware/slxvmconfig + cat /mnt/opt/openslx/plugin-repo/vmware/slxvmconfig \ + >>/mnt/etc/vmware/slxvmconfig [ $DEBUGLEVEL -gt 0 ] && echo "done with 'vmware' os-plugin ..." |