install.sh revision 9dab0783f1c18514294d60033f5d7ac0f41de039
4fe4e4f798a84a46e567f64ceadd3648eb0582d4Allan Foster# Oracle VM VirtualBox
4fe4e4f798a84a46e567f64ceadd3648eb0582d4Allan Foster# VirtualBox linux installation script
4fe4e4f798a84a46e567f64ceadd3648eb0582d4Allan Foster# Copyright (C) 2007-2011 Oracle Corporation
4fe4e4f798a84a46e567f64ceadd3648eb0582d4Allan Foster# This file is part of VirtualBox Open Source Edition (OSE), as
4fe4e4f798a84a46e567f64ceadd3648eb0582d4Allan Foster# available from http://www.virtualbox.org. This file is free software;
4fe4e4f798a84a46e567f64ceadd3648eb0582d4Allan Foster# you can redistribute it and/or modify it under the terms of the GNU
4fe4e4f798a84a46e567f64ceadd3648eb0582d4Allan Foster# General Public License (GPL) as published by the Free Software
4fe4e4f798a84a46e567f64ceadd3648eb0582d4Allan Foster# Foundation, in version 2 as it comes in the "COPYING" file of the
4fe4e4f798a84a46e567f64ceadd3648eb0582d4Allan Foster# VirtualBox OSE distribution. VirtualBox OSE is distributed in the
4fe4e4f798a84a46e567f64ceadd3648eb0582d4Allan Foster# hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
4fe4e4f798a84a46e567f64ceadd3648eb0582d4Allan Foster# Include routines and utilities needed by the installer
b93185b577f7150fec37f9999b95b246d73bf63cjeff.schenk# The "BUILD_" prefixes prevent the variables from being overwritten when we
4fe4e4f798a84a46e567f64ceadd3648eb0582d4Allan Foster# read the configuration from the previous installation.
4fe4e4f798a84a46e567f64ceadd3648eb0582d4Allan Fosterif [ -n "$HARDENED" ]; then
4fe4e4f798a84a46e567f64ceadd3648eb0582d4Allan Foster##############################################################################
4fe4e4f798a84a46e567f64ceadd3648eb0582d4Allan Foster# Helper routines #
4fe4e4f798a84a46e567f64ceadd3648eb0582d4Allan Foster##############################################################################
binary=$1
install_dir=$2
install_dir=$1
BUILD_MODULE=true
if [ -n "$PREV_INSTALLATION" ]; then
info "Removing previous installation of VirtualBox $INSTALL_VER$INSTALL_REV from $PREV_INSTALLATION"
if [ -n "$DKMS" ]
. ./uninstall.sh
RETVAL=$?
RETVAL=$?
cd $pwd
# create symlinks for working around unsupported $ORIGIN/.. in VBoxC.so (setuid),
if [ -n "$HARDENED" ]; then
# numbers here should match the numbers in the vboxdrv.sh check
for i in *; do
for j in *; do
cd $cur
if [ -n "$PYTHON" ]; then
cd $cur
. ./uninstall.sh
exit $RC_SCRIPT