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.
27 lines
779 B
27 lines
779 B
12 years ago
|
#!/sbin/runscript
|
||
|
# Copyright 1999-2013 Gentoo Foundation
|
||
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
# $Header: /var/cvsroot/gentoo-x86/app-emulation/virtualbox-guest-additions/files/virtualbox-guest-additions-8.initd,v 1.1 2013/02/10 18:11:16 polynomial-c Exp $
|
||
|
|
||
|
pidfile="/var/run/vboxguest-service.pid"
|
||
|
command="/usr/sbin/vboxguest-service"
|
||
|
command_args="--foreground"
|
||
|
start_stop_daemon_args="--make-pidfile --pidfile ${pidfile} --background"
|
||
|
|
||
|
depend() {
|
||
|
need dbus localmount
|
||
|
before xdm
|
||
|
}
|
||
|
|
||
|
start_pre() {
|
||
|
einfo "Loading kernel modules"
|
||
|
/sbin/modprobe vboxguest &> /dev/null
|
||
|
/sbin/modprobe vboxsf &> /dev/null
|
||
|
}
|
||
|
|
||
|
stop_post() {
|
||
|
einfo "Removing kernel modules"
|
||
|
/sbin/modprobe -r vboxsf &> /dev/null
|
||
|
/sbin/modprobe -r vboxguest &> /dev/null
|
||
|
}
|