summaryrefslogtreecommitdiff
path: root/emulators/vmware3/files/vmware-wizard
diff options
context:
space:
mode:
Diffstat (limited to 'emulators/vmware3/files/vmware-wizard')
-rw-r--r--emulators/vmware3/files/vmware-wizard26
1 files changed, 26 insertions, 0 deletions
diff --git a/emulators/vmware3/files/vmware-wizard b/emulators/vmware3/files/vmware-wizard
new file mode 100644
index 000000000000..76f21bbcd9d9
--- /dev/null
+++ b/emulators/vmware3/files/vmware-wizard
@@ -0,0 +1,26 @@
+#!/bin/sh
+#
+# Run vmware-wizard
+#
+# $FreeBSD$
+
+if [ ! -e @@LINUXBASE@@/proc/cpuinfo ]; then
+ echo "************************************************************"
+ echo "It seems Linux procfs is not mounted on @@LINUXBASE@@/proc."
+ echo "VMware does not work without Linux procfs mounted."
+ echo
+ echo "For details, see linprocfs(5) manpage."
+ echo "************************************************************"
+ exit 1
+fi
+
+LANG=C
+PATH=/bin:$PATH
+
+if [ _$TMPDIR = _ ]; then
+ TMPDIR=/var/tmp
+ echo Setting TMPDIR="$TMPDIR".
+ export TMPDIR
+fi
+
+exec @@PREFIX@@/lib/vmware/bin/vmware-wizard "$@"