blob: de143d043376a990baf750daf8f5d2e2bfcfeb63 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
#!/sbin/openrc-run
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
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
}
|