]> git.pld-linux.org Git - packages/VirtualBox.git/blobdiff - VirtualBox-vboxdrv.init
- typo
[packages/VirtualBox.git] / VirtualBox-vboxdrv.init
index 2461c77397b17aabe4a53e3779c5b347592e2ade..b40f53c573e1b040c7d2a3eda8d1be78a4e0a3f9 100644 (file)
 # Source function library
 . /etc/rc.d/init.d/functions
 
-# Get service config - may override defaults
-[ -f /etc/sysconfig/virtualbox ] && . /etc/sysconfig/virtualbox
-
 VBOX_DEVICE="/dev/vboxdrv"
 VBOX_MODULE="vboxdrv"
 
+# Get service config - may override defaults
+[ -f /etc/sysconfig/virtualbox ] && . /etc/sysconfig/virtualbox
+
 start() {
        modprobe -s $VBOX_MODULE
        # set proper /dev/vboxdrv for systems with static dev
@@ -71,13 +71,14 @@ case "$1" in
                echo "$VBOX_MODULE module is loaded"
        else
                echo "$VBOX_MODULE module is not loaded"
+               RETVAL=3
        fi
        if [ ! -c $VBOX_DEVICE ]; then
                echo "$VBOX_DEVICE does not exist"
+               RETVAL=3
        else
                echo "$VBOX_DEVICE exists with major/minor $(ls -l $VBOX_DEVICE | awk '{print $5 $6}')"
        fi
-       RETVAL=$?
        ;;
   *)
        msg_usage "$0 {start|stop|restart|status}"
This page took 0.054225 seconds and 4 git commands to generate.