1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-26 05:02:18 +00:00

Don't attempt to load modules if they're already in place.

Submitted by:	fyr@usenet-edu.net
This commit is contained in:
Nick Sayer 2000-12-29 19:10:04 +00:00
parent 9d0f3f17f6
commit 6242007870
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=36445
2 changed files with 10 additions and 10 deletions

View File

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

View File

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