diff options
author | Makoto Matsushita <matusita@FreeBSD.org> | 2003-07-24 15:34:44 +0000 |
---|---|---|
committer | Makoto Matsushita <matusita@FreeBSD.org> | 2003-07-24 15:34:44 +0000 |
commit | 4e3da8e744b6b22a2e5ffeb0360e3023f9405f5d (patch) | |
tree | fa38b92be0e576bbbd2d6b6e1b93e786fe2b4bc7 /emulators/vmware-guestd4/files/vmware-guest_kmod.sh | |
parent | Fix building under -CURRENT (gcc 3.3) (diff) |
Update VMware Tools for 4.0.1 build-5289, the latest version of VMware
Workstation.
This commit makes vmware-tools4 a slave port of vmware-guestd4, since
both are made from the same tarball, and it would be easy to maintain.
Vmware-guestd4 also installs a kernel module named vmmemctl; you may
want to kldload(8) it with a shell script under rc.d/ directory.
VMware Workstation 4.0.1 does fix "jumping the pointer" bug (yeah, thanks
VMware developer team). This means that you do not have to install
linux-vmware-toolbox4. However, it can be used as it should be, I
do not disable and/or remove this port.
Diffstat (limited to 'emulators/vmware-guestd4/files/vmware-guest_kmod.sh')
-rw-r--r-- | emulators/vmware-guestd4/files/vmware-guest_kmod.sh | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/emulators/vmware-guestd4/files/vmware-guest_kmod.sh b/emulators/vmware-guestd4/files/vmware-guest_kmod.sh new file mode 100644 index 000000000000..4791eda0b737 --- /dev/null +++ b/emulators/vmware-guestd4/files/vmware-guest_kmod.sh @@ -0,0 +1,29 @@ +#!/bin/sh + +if ! PREFIX=$(expr $0 : "\(/.*\)/etc/rc\.d/$(basename $0)\$"); then + echo "$0: Cannot determine the PREFIX" >&2 + exit 1 +fi + +case "$1" in +start) + exec 2>/dev/null + ulimit -c 0 + if ${PREFIX}/sbin/vmware-checkvm >/dev/null; then + kldstat -v | grep vmmemctl >/dev/null || kldload ${PREFIX}/lib/vmware/lib/modules/vmmemctl.ko + echo -n ' vmware-guestkmod' + fi + ;; +stop) + exec 2>/dev/null + ulimit -c 0 + if ${PREFIX}/sbin/vmware-checkvm >/dev/null; then + kldstat -v | grep vmmemctl >/dev/null && kldunload vmmemctl && echo -n ' vmware-guestkmod' + fi + ;; +*) + echo "Usage: `basename $0` {start|stop}" >&2 + ;; +esac + +exit 0 |