From fe24e26dab14a10b77f9798a75fbaa94b7972430 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Fri, 4 May 2018 12:37:58 +0100 Subject: Revert "app-emulation/virtualbox-guest-additions : drop" This reverts commit c71b59670b83e6a80185729dab9f4ecbcc8a816a. --- .../files/virtualbox-guest-additions-8.initd | 25 ++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 app-emulation/virtualbox-guest-additions/files/virtualbox-guest-additions-8.initd (limited to 'app-emulation/virtualbox-guest-additions/files/virtualbox-guest-additions-8.initd') 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 +} -- cgit v1.2.3