summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Neves2013-05-14 13:21:17 +0200
committerMichael Neves2013-05-14 13:21:17 +0200
commitf75155fde91ef7c395ec835840b57a5a078e8649 (patch)
tree65ff3e9f2854cfd9fe745b3dc553f32f122a0087
parentAdd openslx log dir (diff)
downloadtm-scripts-f75155fde91ef7c395ec835840b57a5a078e8649.tar.gz
tm-scripts-f75155fde91ef7c395ec835840b57a5a078e8649.tar.xz
tm-scripts-f75155fde91ef7c395ec835840b57a5a078e8649.zip
vmware
-rwxr-xr-xremote/modules/vmplayer/data/etc/openslx/vmware/vmware-env7
-rw-r--r--remote/modules/vmplayer/data/etc/openslx/vmware/vmware.conf8
-rwxr-xr-xremote/modules/vmplayer/data/opt/openslx/bin/vmplayer10
-rw-r--r--remote/modules/vmplayer/vmplayer.build3
4 files changed, 12 insertions, 16 deletions
diff --git a/remote/modules/vmplayer/data/etc/openslx/vmware/vmware-env b/remote/modules/vmplayer/data/etc/openslx/vmware/vmware-env
index f4901070..41360bb3 100755
--- a/remote/modules/vmplayer/data/etc/openslx/vmware/vmware-env
+++ b/remote/modules/vmplayer/data/etc/openslx/vmware/vmware-env
@@ -14,6 +14,8 @@
# §generated§
# -----------------------------------------------------------------------------
+export PATH=$PATH:/opt/openslx/bin:/opt/openslx/sbin:/opt/openslx/usr/bin:/opt/openslx/usr/sbin
+
#functions: helper functions
tempdir () {
# Create a special tempfs directory
@@ -54,7 +56,7 @@ if [ -n "$vmnet1" ] ; then
echo "1" >/proc/sys/net/ipv4/conf/vmnet1/forwarding 2>/dev/null
echo "1" >/proc/sys/net/ipv4/conf/br0/forwarding 2>/dev/null
fi
- /opt/openslx/rootfs/usr/sbin/udhcpd \
+ /opt/openslx/usr/sbin/udhcpd \
-S /etc/vmware/udhcpd/udhcpd-vmnet1.conf
fi
if [ -n "$vmnet8" ] ; then
@@ -77,6 +79,7 @@ fi
vmblock () {
# let point the path directly to the directory where the binary lives
+# TODO: get it to work
/usr/bin/vmware-usbarbitrator
}
@@ -93,7 +96,7 @@ case "$1" in
tempdir
load_modules
vmnetif
- vmblock
+# vmblock
;;
stop)
diff --git a/remote/modules/vmplayer/data/etc/openslx/vmware/vmware.conf b/remote/modules/vmplayer/data/etc/openslx/vmware/vmware.conf
index a67adc18..5a52ca41 100644
--- a/remote/modules/vmplayer/data/etc/openslx/vmware/vmware.conf
+++ b/remote/modules/vmplayer/data/etc/openslx/vmware/vmware.conf
@@ -1,8 +1,8 @@
# configuration file for vmware background services written in stage3 setup
-vmnet0=true
-vmnet1=192.168.101.1/24
-vmnet1nat=true
-vmnet8=192.168.102.1/24
+#vmnet0=true
+#vmnet1=192.168.101.1/24
+#vmnet1nat=true
+#vmnet8=192.168.102.1/24
# stage1 variables produced during plugin install
version="5.0"
buildversion="1031769"
diff --git a/remote/modules/vmplayer/data/opt/openslx/bin/vmplayer b/remote/modules/vmplayer/data/opt/openslx/bin/vmplayer
index 2b6e8f31..030e9175 100755
--- a/remote/modules/vmplayer/data/opt/openslx/bin/vmplayer
+++ b/remote/modules/vmplayer/data/opt/openslx/bin/vmplayer
@@ -1,14 +1,4 @@
#!/bin/sh
-
-for mod in /lib/modules/vmware/*.ko; do
- insmod "$mod" && continue
- xmessage "Could not load kernel module $mod. vmplayer might fail."
-done
-
-export LIBCONF_DIR=/usr/lib/vmware/libconf
-
-#/usr/lib/vmware/bin/vmplayer $@
-
# radically simplified version of the original script vmplayer by VMware Inc.
PREFIX=/usr/lib/vmware # depends on the vmware location
exec "$PREFIX"'/lib/wrapper-gtk24.sh' \
diff --git a/remote/modules/vmplayer/vmplayer.build b/remote/modules/vmplayer/vmplayer.build
index 2ef2ed68..c0067b01 100644
--- a/remote/modules/vmplayer/vmplayer.build
+++ b/remote/modules/vmplayer/vmplayer.build
@@ -1,4 +1,7 @@
fetch_source() {
+ #mount vmware bundle directory
+ [ ! -d /mnt/store/vmware ] && mkdir -p /mnt/store/vmware
+ mount -t nfs -o ro,async,nolock 132.230.8.113:/srv/vmext /mnt/store/vmware || perror "Could not mount vmware bundle directory. Exiting."
ARCH=$(uname -m)
[ "$ARCH" = "i686" ] && ARCH=i386
local BUNDLE="$(find /mnt/store/vmware -type f -name "VMware-Player*.${ARCH}.bundle" | head -1)"