diff options
author | BlackNoxis <steven.darklight@gmail.com> | 2015-02-22 12:51:17 +0200 |
---|---|---|
committer | BlackNoxis <steven.darklight@gmail.com> | 2015-02-22 12:51:17 +0200 |
commit | 5aa176b4d0b3d96fa00499efd042d8a029575751 (patch) | |
tree | 32590fb38bcea8609776883da4b066543776fec6 /app-emulation/virtualbox-guest-additions/files/virtualbox-guest-additions-8.initd | |
parent | 1f256194c40ef12a65dfe14a41394775a957077e (diff) |
Added virtualbox-guest-additions
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.initd | 26 |
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..9de2ee07 --- /dev/null +++ b/app-emulation/virtualbox-guest-additions/files/virtualbox-guest-additions-8.initd @@ -0,0 +1,26 @@ +#!/sbin/runscript +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-emulation/virtualbox-guest-additions/files/virtualbox-guest-additions-8.initd,v 1.2 2013/02/11 22:13:47 polynomial-c Exp $ + +pidfile="/var/run/vboxguest-service.pid" +command="/usr/sbin/vboxguest-service" +command_args="--foreground" +start_stop_daemon_args="--make-pidfile --pidfile ${pidfile} --background" + +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 +} |