diff options
author | Volker Uhrig | 2008-07-01 21:35:04 +0200 |
---|---|---|
committer | Volker Uhrig | 2008-07-01 21:35:04 +0200 |
commit | 642f353a2b9529a1fccf93beff684734122e59aa (patch) | |
tree | 23f845dfdc9f626bbaa3ca5783329e77661898ba /os-plugins/plugins/vmware/files/install-vmpl.sh | |
parent | * merge of vmpl1.0 and vmpl2.0 installation script (diff) | |
download | core-642f353a2b9529a1fccf93beff684734122e59aa.tar.gz core-642f353a2b9529a1fccf93beff684734122e59aa.tar.xz core-642f353a2b9529a1fccf93beff684734122e59aa.zip |
* written in wrong file and removed deprecated install scripts
git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@1896 95ad53e4-c205-0410-b2fa-d234c58c8868
Diffstat (limited to 'os-plugins/plugins/vmware/files/install-vmpl.sh')
-rw-r--r-- | os-plugins/plugins/vmware/files/install-vmpl.sh | 25 |
1 files changed, 11 insertions, 14 deletions
diff --git a/os-plugins/plugins/vmware/files/install-vmpl.sh b/os-plugins/plugins/vmware/files/install-vmpl.sh index 473bb507..6557aaf8 100644 --- a/os-plugins/plugins/vmware/files/install-vmpl.sh +++ b/os-plugins/plugins/vmware/files/install-vmpl.sh @@ -1,7 +1,14 @@ #!/bin/sh -vmplversion="vmpl1.0" -url=http://download3.vmware.com/software/vmplayer/VMware-player-2.0.4-93057.i386.tar.gz +if [ $1 = "vmpl1.0" ]; then + vmplversion="vmpl1.0" + url=http://download3.vmware.com/software/vmplayer/VMware-player-2.0.4-93057.i386.tar.gz + tgzfile=VMware-player-2.0.4-93057.i386.tar.gz +else if [ $1 = "vmpl2.0" ]; then + vmplversion="vmpl2.0" + url=http://download3.vmware.com/software/vmplayer/VMware-player-2.0.4-93057.i386.tar.gz + tgzfile=VMware-player-2.0.4-93057.i386.tar.gz +fi echo "This script will download and install vmplayer from http://www.vmware.com/" echo "Please go to http://vmware.com/download/player/player_reg.html" @@ -23,8 +30,8 @@ if [ "${REPLY}" == "YES" ]; then cd /opt/openslx/plugin-repo/vmware/${vmplversion} wget -c ${url} - echo " * Unpacking vmplayer" - tar xfz VMware-player-2.0.4-93057.i386.tar.gz + echo " * Unpacking vmplayer $vmpl{version}" + tar xfz ${tgzfile} # reduce some errors echo " * deleting old files if available" @@ -32,7 +39,6 @@ if [ "${REPLY}" == "YES" ]; then echo " * copying files..." mkdir vmroot - mkdir -p vmroot/modules mkdir -p vmroot/lib mv vmware-player-distrib/lib vmroot/lib/vmware mv vmware-player-distrib/bin vmroot/ @@ -50,9 +56,6 @@ if [ "${REPLY}" == "YES" ]; then mv test/lib*/* . cd ../../../.. - echo " * Fixing file permission" - chmod 04555 vmroot/lib/vmware/bin/vmware-vmx - echo " * fixing gdk and pango config files" sed -i \ 's,/build/mts/.*/vmui/../libdir/libconf,/opt/openslx/plugin-repo/vmware/${vmplversion}/vmroot/lib/vmware/libconf,' \ @@ -88,24 +91,18 @@ if [ "${REPLY}" == "YES" ]; then # TODO: error check if build environment isn't installed... sed -i "s%^VM_UNAME = .*%VM_UNAME = $(ls /boot/vmlinuz*|grep -v -e "^/boot/vmlinuz$$"|sed 's,/boot/vmlinuz-,,'|sort|tail -n 1)%" Makefile make -s - cp vmblock.ko ../../../../../../modules - cp vmblock.o ../../../../../../modules cd .. echo " * building vmmon module" cd vmmon-only sed -i "s%^VM_UNAME = .*%VM_UNAME = $(ls /boot/vmlinuz*|grep -v -e "^/boot/vmlinuz$$"|sed 's,/boot/vmlinuz-,,'|sort|tail -n 1)%" Makefile make -s - cp vmmon.ko ../../../../../../modules - cp vmmon.o ../../../../../../modules cd .. echo " * building vmnet module" cd vmnet-only sed -i "s%^VM_UNAME = .*%VM_UNAME = $(ls /boot/vmlinuz*|grep -v -e "^/boot/vmlinuz$$"|sed 's,/boot/vmlinuz-,,'|sort|tail -n 1)%" Makefile make -s - cp vmnet.ko ../../../../../../modules - cp vmnet.o ../../../../../../modules cd ../../../../../.. echo " * setting up EULA" |