# $Id$
## @file
# For development.
#
#
# Copyright (C) 2006-2015 Oracle Corporation
#
# This file is part of VirtualBox Open Source Edition (OSE), as
# available from http://www.virtualbox.org. This file is free software;
# General Public License (GPL) as published by the Free Software
# Foundation, in version 2 as it comes in the "COPYING" file of the
# VirtualBox OSE distribution. VirtualBox OSE is distributed in the
# hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
#
# The contents of this file may alternatively be used under the terms
# of the Common Development and Distribution License Version 1.0
# (CDDL) only, as it comes in the "COPYING.CDDL" file of the
# VirtualBox OSE distribution, in which case the provisions of the
# CDDL are applicable instead of those of the GPL.
#
# You may elect to license modified versions of this file under the
# terms and conditions of either the GPL or the CDDL or both.
#
DRVNAME="vboxdrv"
DRIVERS_USING_IT="vboxusb vboxusbmon vboxnet vboxflt vboxbow"
if [ ! -f "$DRVFILE" ]; then
exit 1;
fi
if [ ! -f "$DRVFILE.conf" ]; then
exit 1;
fi
#set -x
# Disable the zone access service.
if test ! -z "$servicefound"; then
fi
# Unload driver that may depend on the driver we're going to (re-)load
# as well as the driver itself.
do
if test -n "$LOADED"; then
if test -n "$LOADED"; then
exit 1;
fi
fi
done
#
# Reconfigure the driver so it get a major number.
#
# Note! We have to copy the driver and config files to somewhere the kernel can
# find them. It is searched for as drv/${DRVNAME}.conf in
# kobj_module_path, which is usually:
# To try prevent bad drivers from being loaded on the next boot, we remove
# always the files.
#
MY_RC=1
set -e
set +e
echo "load.sh: successfully loaded the driver"
MY_RC=0
fi
else
echo "load.sh: modload failed"
fi
else
echo "load.sh: add_drv failed."
fi
exit $MY_RC;