]> git.pld-linux.org Git - packages/VirtualBox-bin.git/blobdiff - VirtualBox-vboxnetflt.init
- VBox udev package from binary distribution conflicts with OSE version.
[packages/VirtualBox-bin.git] / VirtualBox-vboxnetflt.init
index d4e70507b357febbe29d37109dc6a3565a10f68b..78396da14b7f0bb918d5c261b09d6a1d0e5c2d09 100644 (file)
@@ -4,7 +4,7 @@
 #
 # chkconfig:   345 84 25
 #
-# description: InnoTek VirtualBox is a general-purpose full virtualizer for x86 
+# description: VirtualBox is a general-purpose full virtualizer for x86 
 #              hardware. Targeted at server, desktop and embedded use.
 #
 # $Id$
@@ -32,6 +32,15 @@ stop() {
        rm -f /var/lock/subsys/vboxnetflt
 }
 
+condrestart() {
+       if [ -f /var/lock/subsys/vboxnetflt ]; then
+               stop
+               start
+       else
+               RETVAL=$1
+       fi
+}
+
 RETVAL=0
 # See how we were called.
 case "$1" in
@@ -45,6 +54,12 @@ case "$1" in
        stop
        start
        ;;
+  try-restart)
+       condrestart 0
+       ;;
+  force-reload)
+       condrestart 7
+       ;;
   status)
        if ! is_module $VBOX_MODULE; then
                echo "$VBOX_MODULE module is loaded"
@@ -54,7 +69,7 @@ case "$1" in
        fi
        ;;
   *)
-       msg_usage "$0 {start|stop|restart|status}"
+       msg_usage "$0 {start|stop|restart|try-restart|force-reload|status}"
        exit 3
 esac
 
This page took 0.067436 seconds and 4 git commands to generate.