mirror of
https://anongit.gentoo.org/git/repo/gentoo.git
synced 2025-07-23 07:29:19 +02:00
Signed-off-by: Aisha Tammy <gentoo@aisha.cc> Signed-off-by: Matt Turner <mattst88@gentoo.org>
25 lines
547 B
Text
25 lines
547 B
Text
#!/sbin/openrc-run
|
|
# Copyright 1999-2021 Gentoo Authors
|
|
# 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 display-manager
|
|
}
|
|
|
|
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
|
|
}
|