3 # virtualbox VirtualBox virtualizer for x86 hardware
5 # description: Oracle VirtualBox is a general-purpose full virtualizer for x86 \
6 # hardware. Targeted at server, desktop and embedded use.
8 # Source function library
9 . /etc/rc.d/init.d/functions
11 VBOX_MODULE="vboxnetflt"
13 # Get service config - may override defaults
14 [ -f /etc/sysconfig/virtualbox ] && . /etc/sysconfig/virtualbox
17 if [ -f /var/lock/subsys/vboxnetflt ]; then
21 modprobe -s $VBOX_MODULE
22 touch /var/lock/subsys/vboxnetflt
26 # NOTE: rmmod will wait if device is in use, so automatic rmmod probably is not the best idea
27 /sbin/rmmod $VBOX_MODULE
28 rm -f /var/lock/subsys/vboxnetflt
32 if [ ! -f /var/lock/subsys/vboxnetflt ]; then
42 # See how we were called.
61 if ! is_module $VBOX_MODULE; then
62 echo "$VBOX_MODULE module is loaded"
64 echo "$VBOX_MODULE module is not loaded"
69 msg_usage "$0 {start|stop|restart|try-restart|force-reload|status}"