mod.sh revision e64031e20c39650a7bc902a3e1aba613b9415dee
# $Id$
## @file
# Helper script for installing the solaris module in a development environment.
#
#
# Copyright (C) 2006-2009 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.
#
set -x
#
# Figure out the environment and locations.
#
# Sudo isn't native solaris, but it's very convenient...
fi
# src/VBox/HostDrivers/solaris/ residence:
## root residence:
set -e
if test -z "$BUILD_TARGET"; then
export BUILD_TARGET=solaris
fi
if test -z "$BUILD_TARGET_ARCH"; then
export BUILD_TARGET_ARCH=x86
fi
if test -z "$BUILD_TYPE"; then
export BUILD_TYPE=debug
fi
if test "$BUILD_TARGET_ARCH" = "amd64"; then
else
fi
#
# Do the job.
#
$SUDO cp $script_dir/src/VBox/HostDrivers/Support/solaris/vboxdrv.conf $VBOXDRV_CONF_DIR/vboxdrv.conf
if test -n "$old_id"; then
echo "* unloading $old_id..."
#else
# echo "* If it fails below, run: $SUDO add_drv -m'* 0666 root sys' vboxdrv"
fi
echo "* vboxdrv already present in /etc/devlink.tab"
else
echo "* Adding vboxdrv to /etc/devlink.tab"
fi
echo "* loading vboxdrv..."
echo "* dmesg:"
fi