1
0
mirror of https://github.com/gryf/gryf-overlay.git synced 2026-03-04 00:35:48 +01:00
Files
gryf-overlay/app-emulation/virtualbox-guest-additions/files/virtualbox-guest-additions-8.initd
gryf 5cdd66dd7c Make virtualbox-guest-additions to compile
Currently official build for guest additions will fail due to some
unset/wrong set variables. This is an workaround for it - added KERN_VER
variable which is set to current kernel version, so this ebuild cannot
be run against new kernel version while executed on older/other kernel
version.
2018-11-25 09:10:20 +01:00

26 lines
538 B
Plaintext

#!/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
}