2
# (C) 2012 Felix Geyer <fgeyer@debian@org>
5
# Provides: virtualbox-guest-x11
6
# Short-Description: VirtualBox Linux X11 Additions
7
# Required-Start: $remote_fs
13
PATH=$PATH:/bin:/sbin:/usr/sbin
15
. /lib/lsb/init-functions
17
test -e /usr/lib/VBoxOGL.so || exit 0
21
if [ -z "$(lspci -d 80ee:beef)" ]; then
22
log_warning_msg "VirtualBox Additions disabled, not in a Virtual Machine"
31
lsmod | grep -q "$1[^_-]"
36
in_virtual_machine || exit 0
37
log_begin_msg "Loading VirtualBox video kernel module"
39
if ! running vboxvideo; then
40
if ! modprobe vboxvideo > /dev/null 2>&1; then
41
if ! find /lib/modules/`uname -r` -name "vboxvideo\.*" 2>/dev/null|grep -q vboxvideo; then
42
log_failure_msg "No suitable module for running kernel found"
44
log_failure_msg "modprobe vboxvideo failed. Please use 'dmesg' to find out why"
62
echo "Usage: $0 {start|stop|restart|force-reload}"