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