summaryrefslogtreecommitdiff
path: root/emulators/vmware3/files
diff options
context:
space:
mode:
authorAkinori MUSHA <knu@FreeBSD.org>2000-10-02 14:29:06 +0000
committerAkinori MUSHA <knu@FreeBSD.org>2000-10-02 14:29:06 +0000
commit7207c218933b87e59958ceb32732586260f09183 (patch)
treef0f26e52ad20113dbbd24e9a93637738d3f14618 /emulators/vmware3/files
parentFix Makefile (diff)
Complain and stop in case ${LINUXBASE}/dev/vmnet1 is not found.
Submitted by: shimokawa
Notes
Notes: svn path=/head/; revision=33324
Diffstat (limited to 'emulators/vmware3/files')
-rw-r--r--emulators/vmware3/files/vmware.sh8
1 files changed, 7 insertions, 1 deletions
diff --git a/emulators/vmware3/files/vmware.sh b/emulators/vmware3/files/vmware.sh
index 93c8c4e33be8..fe19977b293c 100644
--- a/emulators/vmware3/files/vmware.sh
+++ b/emulators/vmware3/files/vmware.sh
@@ -8,6 +8,7 @@ vmware_dir=@@PREFIX@@/lib/vmware
networking=@@NETWORKING@@
host_ip=@@HOST_IP@@
netmask=@@NETMASK@@
+dev_vmnet1=@@LINUXBASE@@/dev/vmnet1
[ -x $vmware_dir/bin/vmware ] || exit
@@ -25,7 +26,12 @@ start)
if [ $networking -eq 1 ]; then
sysctl net.link.ether.bridge_refresh && bridge="_bridge"
kldload if_tap.ko
- echo -n >@@LINUXBASE@@/dev/vmnet1
+ if [ ! -e $dev_vmnet1 ]; then
+ echo "$dev_vmnet1 does not exist!" >&2
+ echo "Your VMware installation seems broken. Please reinstall VMware port." >&2
+ exit 255
+ fi
+ echo -n > $dev_vmnet1
ifconfig vmnet1 $host_ip netmask $netmask
if [ _$bridge != _ ]; then
sysctl -w net.link.ether.bridge_refresh=1