summaryrefslogtreecommitdiff
path: root/app-emulation/open-vm-tools/files/open-vm-tools.initd
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2018-07-14 20:56:41 +0100
committerV3n3RiX <venerix@redcorelinux.org>2018-07-14 20:56:41 +0100
commitd87262dd706fec50cd150aab3e93883b6337466d (patch)
tree246b44c33ad7a57550430b0a60fa0df86a3c9e68 /app-emulation/open-vm-tools/files/open-vm-tools.initd
parent71bc00c87bba1ce31de0dac6c3b7fd1aee6917fc (diff)
gentoo resync : 14.07.2018
Diffstat (limited to 'app-emulation/open-vm-tools/files/open-vm-tools.initd')
-rw-r--r--app-emulation/open-vm-tools/files/open-vm-tools.initd59
1 files changed, 0 insertions, 59 deletions
diff --git a/app-emulation/open-vm-tools/files/open-vm-tools.initd b/app-emulation/open-vm-tools/files/open-vm-tools.initd
deleted file mode 100644
index 8b91e4fb4c0a..000000000000
--- a/app-emulation/open-vm-tools/files/open-vm-tools.initd
+++ /dev/null
@@ -1,59 +0,0 @@
-#!/sbin/openrc-run
-# Copyright 1999-2013 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-pidfile="/run/vmtoolsd.pid"
-command="/usr/bin/vmtoolsd"
-command_args="-b ${pidfile}"
-
-vmblockmntpt="/proc/fs/vmblock/mountPoint"
-vmblockfusemntpt="/run/vmblock-fuse"
-
-depend() {
- before checkfs fsck net X
-}
-
-start_vmblock() {
- checkpath -d -m 1777 /tmp/VMwareDnD
- if command -v vmware-vmblock-fuse > /dev/null; then
- modprobe fuse > /dev/null 2>&1
- checkpath -d "${vmblockfusemntpt}"
- ebegin "Mounting vmblock-fuse"
- vmware-vmblock-fuse \
- -o subtype=vmware-vmblock,default_permissions,allow_other \
- "${vmblockfusemntpt}"
- eend $?
- else
- modprobe vmblock > /dev/null 2>&1
- checkpath -d "${vmblockmntpt}"
- ebegin "Mounting vmblock"
- mount -t vmblock vmblock "${vmblockmntpt}"
- eend $?
- fi
-}
-
-stop_vmblock() {
- if [ -d "${vmblockfusemntpt}" ]; then
- ebegin "Unmounting vmblock-fuse"
- umount "${vmblockfusemntpt}"
- eend $?
- else
- ebegin "Unmounting vmblock"
- umount "${vmblockmntpt}"
- eend $?
- fi
-}
-
-start_pre() {
- if [ x"${VM_DRAG_AND_DROP}" = xyes ]; then
- start_vmblock
- fi
- return 0
-}
-
-stop_post() {
- if [ x"${VM_DRAG_AND_DROP}" = xyes ]; then
- stop_vmblock
- fi
- return 0
-}