]> git.pld-linux.org Git - packages/VirtualBox-bin.git/commitdiff
- if sysconfig is loaded, let it do something auto/ac/VirtualBox-1_5_6-1 auto/ac/VirtualBox-1_5_6-2 auto/th/VirtualBox-1_5_4-2 auto/th/VirtualBox-1_5_4-3 auto/th/VirtualBox-1_5_4-4 auto/th/VirtualBox-1_5_4-5 auto/th/VirtualBox-1_5_4-6 auto/th/VirtualBox-1_5_4-7 auto/th/VirtualBox-1_5_4-8 auto/th/VirtualBox-1_5_4-9 auto/th/VirtualBox-1_5_6-9 auto/ti/VirtualBox-1_5_4-6 auto/ti/VirtualBox-1_5_4-8 auto/ti/VirtualBox-1_5_6-9
authorJakub Bogusz <qboosh@pld-linux.org>
Tue, 29 Jan 2008 18:10:30 +0000 (18:10 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- status returns 3 if no module or device

Changed files:
    VirtualBox-vboxdrv.init -> 1.2

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.092387 seconds and 4 git commands to generate.