vboxvfs.sh revision 743e930caaabf7460c3f885ad4ebd54cea85c731
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsync# Sun xVM VirtualBox
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsync# Linux Additions VFS kernel module init script
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsync# Copyright (C) 2006-2007 Sun Microsystems, Inc.
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsync# This file is part of VirtualBox Open Source Edition (OSE), as
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsync# available from http://www.virtualbox.org. This file is free software;
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsync# you can redistribute it and/or modify it under the terms of the GNU
7c465e80d0699fab71706c8a013a3327ec7034dcvboxsync# General Public License (GPL) as published by the Free Software
4e9f070a55a9ab37758f11adff5ca15d0498bcffvboxsync# Foundation, in version 2 as it comes in the "COPYING" file of the
7c465e80d0699fab71706c8a013a3327ec7034dcvboxsync# VirtualBox OSE distribution. VirtualBox OSE is distributed in the
7c465e80d0699fab71706c8a013a3327ec7034dcvboxsync# hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
7c465e80d0699fab71706c8a013a3327ec7034dcvboxsync# Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
4e9f070a55a9ab37758f11adff5ca15d0498bcffvboxsync# Clara, CA 95054 USA or visit http://www.sun.com if you need
7c465e80d0699fab71706c8a013a3327ec7034dcvboxsync# additional information or have any questions.
e2f182ec6538ad3eec9aab9c682296e044063200vboxsync# chkconfig: 35 30 60
e85b92d4df013df97a72864a412eb94eb3f70acevboxsync# description: VirtualBox Linux Additions VFS kernel module
7c465e80d0699fab71706c8a013a3327ec7034dcvboxsync### BEGIN INIT INFO
7c465e80d0699fab71706c8a013a3327ec7034dcvboxsync# Provides: vboxvfs
7c465e80d0699fab71706c8a013a3327ec7034dcvboxsync# Required-Start: vboxadd
7c465e80d0699fab71706c8a013a3327ec7034dcvboxsync# Required-Stop:
b9c7eaa5e444d11199b5fceda5662dc5e7452f70vboxsync# Default-Start: 2 3 4 5
b9c7eaa5e444d11199b5fceda5662dc5e7452f70vboxsync# Default-Stop: 0 1 6
b9c7eaa5e444d11199b5fceda5662dc5e7452f70vboxsync# Description: VirtualBox Linux Additions VFS kernel module
b9c7eaa5e444d11199b5fceda5662dc5e7452f70vboxsync### END INIT INFO
6034392134865ffc1f0d2453a8ddd11b84d03db2vboxsyncif [ -n "$NOLSB" ]; then
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsyncif [ -z "$NOLSB" ]; then
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsync begin_msg "Starting VirtualBox Additions shared folder support";
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsync if dmesg | grep "vboxConnect failed" > /dev/null 2>&1; then
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsync echo "You may be trying to run Guest Additions from binary release of VirtualBox"
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsync begin_msg "Stopping VirtualBox Additions shared folder support";
bf5c9a8b30aeef751e52cfe8a66250caab2fd6a2vboxsync rmmod $modname || failure "Cannot unload module $modname"
28471851c9621fb51b7968142cce9791928d65d1vboxsync echo "VirtualBox Additions shared folder support is currently running."
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsync echo "VirtualBox Additions shared folder support is not currently running."