aboutsummaryrefslogtreecommitdiffstats
path: root/testing/virtualbox-guest-additions/virtualbox-guest-additions.initd
diff options
context:
space:
mode:
Diffstat (limited to 'testing/virtualbox-guest-additions/virtualbox-guest-additions.initd')
-rwxr-xr-xtesting/virtualbox-guest-additions/virtualbox-guest-additions.initd33
1 files changed, 0 insertions, 33 deletions
diff --git a/testing/virtualbox-guest-additions/virtualbox-guest-additions.initd b/testing/virtualbox-guest-additions/virtualbox-guest-additions.initd
deleted file mode 100755
index c8663c1c6e..0000000000
--- a/testing/virtualbox-guest-additions/virtualbox-guest-additions.initd
+++ /dev/null
@@ -1,33 +0,0 @@
-#!/sbin/openrc-run
-# Copyright 1999-2013 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Id$
-
-pidfile="/var/run/vboxguest-service.pid"
-command="/usr/sbin/VBoxService"
-command_args="--foreground"
-start_stop_daemon_args="--make-pidfile --pidfile ${pidfile} --background"
-
-depend() {
- need localmount
-}
-
-start_pre() {
- einfo "Loading kernel modules"
- /sbin/modprobe vboxguest 2>&1 && \
- /sbin/modprobe vboxsf 2>&1
- eend $?
-}
-
-stop_pre() {
- einfo "Unmounting shared folders"
- /bin/grep vboxsf /proc/mounts | /usr/bin/cut -f2 -d' ' | /usr/bin/xargs -n1 -r /bin/umount
- eend $?
-}
-
-stop_post() {
- einfo "Removing kernel modules"
- /sbin/modprobe -r vboxsf 2>&1 && \
- /sbin/modprobe -r vboxguest 2>&1
- eend $?
-}