3 # virtualbox VirtualBox virtualizer for x86 hardware
7 # description: VirtualBox is a general-purpose full virtualizer for x86
8 # hardware. Targeted at server, desktop and embedded use.
12 # Source function library
13 . /etc/rc.d/init.d/functions
15 VBOX_DEVICE="/dev/vboxvfs"
18 # Get service config - may override defaults
19 [ -f /etc/sysconfig/virtualbox ] && . /etc/sysconfig/virtualbox
22 if [ ! -f /var/lock/subsys/vboxvfs ]; then
23 modprobe -s $VBOX_MODULE
24 # set proper /dev/vboxdrv for systems with static dev
25 touch /var/lock/subsys/vboxvfs
30 # NOTE: rmmod will wait if device is in use, so automatic rmmod probably is not the best idea
31 /sbin/rmmod $VBOX_MODULE
32 rm -f /var/lock/subsys/vboxvfs
36 # See how we were called.
49 if ! is_module $VBOX_MODULE; then
50 echo "$VBOX_MODULE module is loaded"
52 echo "$VBOX_MODULE module is not loaded"
57 msg_usage "$0 {start|stop|restart|status}"