summaryrefslogtreecommitdiff
path: root/app-emulation/virtualbox-guest-additions/files/virtualbox-guest-additions-8.initd
diff options
context:
space:
mode:
authorV3n3RiX <venerix@rogentos.ro>2016-10-22 17:53:24 +0100
committerV3n3RiX <venerix@rogentos.ro>2016-10-22 17:53:24 +0100
commitdd3cd4a694d79a130337c15b950cade18a607cb3 (patch)
tree871250963cf0d3ddbd56be5561b4fb970e376791 /app-emulation/virtualbox-guest-additions/files/virtualbox-guest-additions-8.initd
parenteca4e32875f0251c3f2413e94cda464d8f175884 (diff)
sync vbox
Diffstat (limited to 'app-emulation/virtualbox-guest-additions/files/virtualbox-guest-additions-8.initd')
-rw-r--r--app-emulation/virtualbox-guest-additions/files/virtualbox-guest-additions-8.initd26
1 files changed, 26 insertions, 0 deletions
diff --git a/app-emulation/virtualbox-guest-additions/files/virtualbox-guest-additions-8.initd b/app-emulation/virtualbox-guest-additions/files/virtualbox-guest-additions-8.initd
new file mode 100644
index 00000000..de143d04
--- /dev/null
+++ b/app-emulation/virtualbox-guest-additions/files/virtualbox-guest-additions-8.initd
@@ -0,0 +1,26 @@
+#!/sbin/openrc-run
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+pidfile="/var/run/vboxguest-service.pid"
+command="/usr/sbin/vboxguest-service"
+command_args="--foreground"
+command_background="true"
+
+depend() {
+ need dbus localmount
+ before xdm
+}
+
+start_pre() {
+ einfo "Loading kernel modules"
+ /sbin/modprobe vboxguest 2>&1
+ /sbin/modprobe vboxsf 2>&1
+}
+
+stop_post() {
+ einfo "Removing kernel modules"
+ /sbin/modprobe -r vboxsf 2>&1
+ /sbin/modprobe -r vboxguest 2>&1
+}