1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-22 20:41:26 +00:00

Complain and stop in case ${LINUXBASE}/dev/vmnet1 is not found.

Submitted by:	shimokawa
This commit is contained in:
Akinori MUSHA 2000-10-02 14:29:06 +00:00
parent c91f2e1b03
commit 7207c21893
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=33324
2 changed files with 14 additions and 2 deletions

View File

@ -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

View File

@ -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