mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-15 23:50:44 +00:00
9225c521c3
- Make portlint satisfy - Avoid creating files out of WRKDIR - Remove the void directory "patch" (What ever was this?) - Adjust whitespace - Fix some ungrammatical wordings - Modify COMMENT and DESCR - Drop fakeprocfs support due to the import of Linux procfs to the base system - Show MESSAGE after installation - Change maintainer to the -emulation list because: - Vladimir seems too busy or unreachable these days - This port depends very much on Linux compatibility stuff - Get it to check if the system has Linux procfs module and stop if not PR: ports/16960 (add WWW to DESCR) No response by: maintainer
40 lines
685 B
Bash
40 lines
685 B
Bash
#!/bin/sh
|
|
#
|
|
# Start or stop vmware
|
|
#
|
|
# $FreeBSD$
|
|
|
|
vmware_dir=@@PREFIX@@/lib/vmware
|
|
networking=@@NETWORKING@@
|
|
host_ip=@@HOST_IP@@
|
|
netmask=@@NETMASK@@
|
|
|
|
[ -x $vmware_dir/bin/vmware ] || exit
|
|
exec >/dev/null
|
|
|
|
case $1 in
|
|
start)
|
|
kldload ${vmware_dir}/lib/modules/vmmon.ko
|
|
if [ $networking -eq 1 ]; then
|
|
kldload ${vmware_dir}/lib/modules/vmnet.ko
|
|
echo -n >/dev/vmnet1
|
|
ifconfig vmnet1 $host_ip netmask $netmask
|
|
fi
|
|
echo -n " VMware" >/dev/tty
|
|
;;
|
|
|
|
stop)
|
|
kldunload vmmon
|
|
if [ $networking -eq 1 ]; then
|
|
ifconfig vmnet1 down
|
|
ifconfig vmnet1 delete $host_ip
|
|
kldunload vmnet
|
|
fi
|
|
;;
|
|
|
|
*)
|
|
echo "usage: `basename $0` {start|stop}" >&2
|
|
exit 64
|
|
;;
|
|
esac
|