aboutsummaryrefslogtreecommitdiff
path: root/emulators/vmware2
diff options
context:
space:
mode:
authorNick Sayer <nsayer@FreeBSD.org>2000-12-29 19:10:04 +0000
committerNick Sayer <nsayer@FreeBSD.org>2000-12-29 19:10:04 +0000
commit624200787033730ec4e008e60542a59e351576ec (patch)
treefb0f0b906b39b26d8a72de0fde7a8c5526378d06 /emulators/vmware2
parent9d0f3f17f627b25731e256374386772ccb872686 (diff)
downloadports-624200787033730ec4e008e60542a59e351576ec.tar.gz
ports-624200787033730ec4e008e60542a59e351576ec.zip
Notes
Diffstat (limited to 'emulators/vmware2')
-rw-r--r--emulators/vmware2/files/vmware.sh10
1 files changed, 5 insertions, 5 deletions
diff --git a/emulators/vmware2/files/vmware.sh b/emulators/vmware2/files/vmware.sh
index ebd5e68557fa..a5d8029ee831 100644
--- a/emulators/vmware2/files/vmware.sh
+++ b/emulators/vmware2/files/vmware.sh
@@ -45,9 +45,9 @@ exec >/dev/null
case $1 in
start)
- kldload ${vmware_libdir}/modules/vmmon_${suffix}.ko
+ kldstat -v | grep vmmon >/dev/null || kldload ${vmware_libdir}/modules/vmmon_${suffix}.ko
if [ $networking -eq 1 ]; then
- kldload if_tap.ko
+ kldstat -v | grep if_tap >/dev/null || kldload if_tap.ko
if [ ! -e $dev_vmnet1 ]; then
echo "$dev_vmnet1 does not exist!" >&2
echo "Your VMware installation seems broken. Please reinstall VMware port." >&2
@@ -56,9 +56,9 @@ start)
echo -n > $dev_vmnet1
ifconfig vmnet1 $host_ip netmask $netmask
if [ X$bridged = XYES ]; then
- kldload netgraph.ko
- kldload ng_ether.ko
- kldload ng_bridge.ko
+ kldstat -v | grep netgraph >/dev/null || kldload netgraph.ko
+ kldstat -v | grep ng_ether >/dev/null || kldload ng_ether.ko
+ kldstat -v | grep ng_bridge >/dev/null || kldload ng_bridge.ko
ngctl mkpeer vmnet1: bridge lower link0
ngctl name vmnet1:lower vmnet_bridge
ngctl connect vmnet_bridge: ${bridge_interface}: link1 lower