summaryrefslogtreecommitdiff
path: root/emulators/vmware3/files
diff options
context:
space:
mode:
authorAkinori MUSHA <knu@FreeBSD.org>2000-04-25 14:23:37 +0000
committerAkinori MUSHA <knu@FreeBSD.org>2000-04-25 14:23:37 +0000
commitaef81ecac34297b5a1f4c96bcb30f160e44f1d15 (patch)
treee18dccda11cc764670ab84d0663174eda01fe341 /emulators/vmware3/files
parent- Update to 1.2c. (diff)
Show an error message and exit when vmware is invoked without Linux procfs
mounted on /compat/linux/proc. I hope that would reduce FAQ.
Notes
Notes: svn path=/head/; revision=27998
Diffstat (limited to 'emulators/vmware3/files')
-rw-r--r--emulators/vmware3/files/vmware10
1 files changed, 10 insertions, 0 deletions
diff --git a/emulators/vmware3/files/vmware b/emulators/vmware3/files/vmware
index 8bf4e133d6c7..7109da2fdb63 100644
--- a/emulators/vmware3/files/vmware
+++ b/emulators/vmware3/files/vmware
@@ -4,6 +4,16 @@
#
# $FreeBSD$
+if [ ! -e @@LINUX_DIR@@/proc/cpuinfo ]; then
+ echo "************************************************************"
+ echo "It seems Linux procfs is not mounted on @@LINUX_DIR@@/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