You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
538 B
26 lines
538 B
#!/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
|
|
}
|