]> git.pld-linux.org Git - packages/VirtualBox.git/blobdiff - VirtualBox-vboxsf.init
- release 12
[packages/VirtualBox.git] / VirtualBox-vboxsf.init
index 83581c3c82fc4436522d39679f5c2adfacd81e77..097ae7ad26ae3356378b629c6200760678968539 100644 (file)
 # Source function library
 . /etc/rc.d/init.d/functions
 
-VBOX_DEVICE="/dev/vboxvfs"
-VBOX_MODULE="vboxvfs"
+VBOX_DEVICE="/dev/vboxsf"
+VBOX_MODULE="vboxsf"
 
 # Get service config - may override defaults
 [ -f /etc/sysconfig/virtualbox ] && . /etc/sysconfig/virtualbox
 
 start() {
-       if [ ! -f /var/lock/subsys/vboxvfs ]; then
-               modprobe -s $VBOX_MODULE
-               # set proper /dev/vboxdrv for systems with static dev
-               touch /var/lock/subsys/vboxvfs
+       if [ -f /var/lock/subsys/vboxsf ]; then
+               return
        fi
+
+       modprobe -s $VBOX_MODULE
+       touch /var/lock/subsys/vboxsf
 }
 
 stop() {
-       # NOTE: rmmod will wait if device is in use, so automatic rmmod probably not the best idea
+       # NOTE: rmmod will wait if device is in use, so automatic rmmod probably is not the best idea
        /sbin/rmmod $VBOX_MODULE
-       rm -f /var/lock/subsys/vboxvfs
+       rm -f /var/lock/subsys/vboxsf
 }
 
 RETVAL=0
This page took 0.034608 seconds and 4 git commands to generate.