mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-27 09:21:41 +02:00
- Userland components to VirtualBox's guest additions, eg. VBoxService, VBoxControl, mount.vboxsf, and a basic init script. - Creates vboxsf group on install to allow VBoxService to auto-mount shared folders.
26 lines
570 B
Plaintext
26 lines
570 B
Plaintext
#!/sbin/openrc-run
|
|
# Copyright 1999-2013 Gentoo Foundation
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
# $Id$
|
|
|
|
pidfile="/var/run/vboxguest-service.pid"
|
|
command="/usr/sbin/VBoxService"
|
|
command_args="--foreground"
|
|
start_stop_daemon_args="--make-pidfile --pidfile ${pidfile} --background"
|
|
|
|
depend() {
|
|
need localmount
|
|
}
|
|
|
|
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
|
|
}
|