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-guestd6/files | |
parent | ee8a3c2a6110465e8e7d692d175fa33360a30e84 (diff) | |
download | ports-4e3da8e744b6b22a2e5ffeb0360e3023f9405f5d.tar.gz ports-4e3da8e744b6b22a2e5ffeb0360e3023f9405f5d.zip |
Notes
Diffstat (limited to 'emulators/vmware-guestd6/files')
-rw-r--r-- | emulators/vmware-guestd6/files/vmware-guest_kmod.sh | 29 | ||||
-rw-r--r-- | emulators/vmware-guestd6/files/vmware-guestd.sh | 4 | ||||
-rw-r--r-- | emulators/vmware-guestd6/files/vmware-guestd.sh.in | 4 |
3 files changed, 33 insertions, 4 deletions
diff --git a/emulators/vmware-guestd6/files/vmware-guest_kmod.sh b/emulators/vmware-guestd6/files/vmware-guest_kmod.sh new file mode 100644 index 000000000000..4791eda0b737 --- /dev/null +++ b/emulators/vmware-guestd6/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 diff --git a/emulators/vmware-guestd6/files/vmware-guestd.sh b/emulators/vmware-guestd6/files/vmware-guestd.sh index 10f0e0e5e31d..569be8a4121e 100644 --- a/emulators/vmware-guestd6/files/vmware-guestd.sh +++ b/emulators/vmware-guestd6/files/vmware-guestd.sh @@ -9,7 +9,7 @@ case "$1" in start) exec 2>/dev/null ulimit -c 0 - if ${PREFIX}/sbin/checkvm >/dev/null; then + if ${PREFIX}/sbin/vmware-checkvm >/dev/null; then ${PREFIX}/sbin/vmware-guestd & echo -n ' vmware-guestd' fi @@ -17,7 +17,7 @@ start) stop) exec 2>/dev/null ulimit -c 0 - if ${PREFIX}/sbin/checkvm >/dev/null; then + if ${PREFIX}/sbin/vmware-checkvm >/dev/null; then killall vmware-guestd && echo -n ' vmware-guestd' fi ;; diff --git a/emulators/vmware-guestd6/files/vmware-guestd.sh.in b/emulators/vmware-guestd6/files/vmware-guestd.sh.in index 10f0e0e5e31d..569be8a4121e 100644 --- a/emulators/vmware-guestd6/files/vmware-guestd.sh.in +++ b/emulators/vmware-guestd6/files/vmware-guestd.sh.in @@ -9,7 +9,7 @@ case "$1" in start) exec 2>/dev/null ulimit -c 0 - if ${PREFIX}/sbin/checkvm >/dev/null; then + if ${PREFIX}/sbin/vmware-checkvm >/dev/null; then ${PREFIX}/sbin/vmware-guestd & echo -n ' vmware-guestd' fi @@ -17,7 +17,7 @@ start) stop) exec 2>/dev/null ulimit -c 0 - if ${PREFIX}/sbin/checkvm >/dev/null; then + if ${PREFIX}/sbin/vmware-checkvm >/dev/null; then killall vmware-guestd && echo -n ' vmware-guestd' fi ;; |