freebsd-ports/emulators/vmware2/files/vmware

27 lines
607 B
Text
Raw Normal View History

#!/bin/sh
#
# Run vmware
#
# $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 "$@"