mirror of
https://github.com/gryf/gryf-overlay.git
synced 2026-04-21 01:51:24 +02:00
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.
This commit is contained in:
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user