summaryrefslogtreecommitdiff
path: root/app-emulation/virtualbox-guest-additions/files/virtualbox-guest-additions-8.initd
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-06-04 17:23:22 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-06-04 17:23:22 +0100
commit6dbe42f0406d179ae3061655ee9536f325452939 (patch)
tree49b33ce82befea676253d79f49d026f5252a94a3 /app-emulation/virtualbox-guest-additions/files/virtualbox-guest-additions-8.initd
parent8b096a612ec4e8cadaa1c77b7f34b9253d91f4e4 (diff)
bring back all virtualbox integration
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.initd25
1 files changed, 25 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..3af22dbf
--- /dev/null
+++ b/app-emulation/virtualbox-guest-additions/files/virtualbox-guest-additions-8.initd
@@ -0,0 +1,25 @@
+#!/sbin/openrc-run
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+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
+}