summaryrefslogtreecommitdiffstats
path: root/os-plugins/plugins/vmwarebinary/files/installbinary.sh
diff options
context:
space:
mode:
authorVolker Uhrig2008-03-14 17:49:28 +0100
committerVolker Uhrig2008-03-14 17:49:28 +0100
commit1b00e76c97de127016555293a48cfa912055a775 (patch)
tree725f011ebe4b6a097078155d95b1bd359b423e9e /os-plugins/plugins/vmwarebinary/files/installbinary.sh
parentugly hack: theme plugin works now with kdm and all distros again. Remove file... (diff)
downloadcore-1b00e76c97de127016555293a48cfa912055a775.tar.gz
core-1b00e76c97de127016555293a48cfa912055a775.tar.xz
core-1b00e76c97de127016555293a48cfa912055a775.zip
* Adding temporary plugin which install vmplayer in stage1
* In the future it will be merged with the vmplayer plugin * current status: * installation tested with suse 10.2 * files/runvmware-v2 need to be changed to fit the new locations * XX_vmwarebinary.sh needs to get reviewed again git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@1632 95ad53e4-c205-0410-b2fa-d234c58c8868
Diffstat (limited to 'os-plugins/plugins/vmwarebinary/files/installbinary.sh')
-rw-r--r--os-plugins/plugins/vmwarebinary/files/installbinary.sh66
1 files changed, 66 insertions, 0 deletions
diff --git a/os-plugins/plugins/vmwarebinary/files/installbinary.sh b/os-plugins/plugins/vmwarebinary/files/installbinary.sh
new file mode 100644
index 00000000..e1b412c6
--- /dev/null
+++ b/os-plugins/plugins/vmwarebinary/files/installbinary.sh
@@ -0,0 +1,66 @@
+#!/bin/sh
+
+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"
+echo "and ..."
+echo " * complete this registration form"
+echo " * click on \"Download Now\""
+echo " * read and decide if you want to accept the VMware master end user license agreement"
+echo
+echo "If you have done this and accepted the enduser licence type in yes in uppercase."
+echo "This will install vmplayer on your vendor-os. If you don't agree this license"
+echo "vmplayer won't be installed."
+echo
+read
+echo
+
+if [ ${REPLY} == "YES" ]; then
+ cd /opt/openslx/plugin-repo/vmwarebinary
+
+ echo " * Downloading vmplayer now. This may take a while"
+ cd /opt/openslx/plugin-repo/vmwarebinary/
+ todo, during development we have this file and dont need to download it
+ wget -c http://download3.vmware.com/software/vmplayer/VMware-player-2.0.2-59824.i386.tar.gz
+
+ echo " * Unpacking vmplayer"
+ tar xfz VMware-player-2.0.2-59824.i386.tar.gz
+
+ echo " * copying files..."
+ mkdir root
+ mkdir -p root/lib
+ mv vmware-player-distrib/lib root/lib/vmware
+ mv vmware-player-distrib/bin root/
+ mv vmware-player-distrib/sbin root/
+ mv vmware-player-distrib/doc root/
+ mv vmware-player-distrib/installer/services.sh /etc/init.d/vmware
+
+ echo " * creating /etc/vmware/locations and /etc/vmware/not_configured"
+ mkdir -p /etc/vmware
+ touch /etc/vmware/not_configured
+ mv locations /etc/vmware/
+
+ echo " * Faking kernelversion"
+ mv /bin/uname /bin/uname.orig
+ mv /sbin/depmod /sbin/depmod.orig
+ mv /sbin/insmod /sbin/insmod.orig
+ #for development purpose
+ cp uname.sh /bin/uname
+ cp depmod.sh /sbin/depmod
+ cp insmod.sh /sbin/insmod
+ chmod 755 /bin/uname /sbin/depmod /sbin/insmod
+
+ echo " * Start vmware configuration"
+ /opt/openslx/plugin-repo/vmwarebinary/root/bin/vmware-config.pl \
+ --default
+
+ echo " * undo fake environment"
+ mv /bin/uname.orig /bin/uname
+ mv /sbin/depmod.orig /sbin/depmod
+ mv /sbin/insmod.orig /sbin/insmod
+
+ echo " * finishing installation"
+ rm -rf /etc/vmware/not_configured
+
+else
+ echo "You didnt't accept the end user license. vmplayer is not installed."
+fi