uninstall.sh revision 78d5c1f3e0c4c4dce02baa0be07e616bc212f441
#
# Oracle VM VirtualBox
# VirtualBox linux uninstallation script
#
# Copyright (C) 2009-2010 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.
#
. `dirname $0`/routines.sh
if [ -z "$ro_LOG_FILE" ]; then
fi
if [ -z "VBOX_NO_UNINSTALL_MESSAGE" ]; then
info "Uninstalling VirtualBox"
log "Uninstalling VirtualBox"
log ""
fi
# Find previous installation
if [ -r $CONFIG_DIR/$CONFIG ]; then
fi
# Remove previous installation
if [ "$PREV_INSTALLATION" = "" ]; then
log "Unable to find a VirtualBox installation, giving up."
abort "Couldn't find a VirtualBox installation to uninstall."
fi
# Stop the ballon control service
# Stop the web service
# Do this check here after we terminated the web service
# Terminate VBoxNetDHCP if running
# Stop kernel module and uninstall runlevel script
# Stop host networking and uninstall runlevel script (obsolete)
# Remove kernel module installed
if [ -n "$DKMS" ]; then
fi
if [ -z "$VBOX_DONT_REMOVE_OLD_MODULES" ]; then
# Remove directories we have installed to in the past
fi
# Remove symlinks
rm -f \
# Remove udev description file
fi
fi
# Remove our USB device tree
cwd=`pwd`
fi
fi
fi
fi
if [ -r $CONFIG_DIR/$CONFIG_FILES ]; then
elif [ -n "$DEFAULT_FILES" -a -r "$DEFAULT_FILES" ]; then
for i in "$DEFAULT_FILE_NAMES"; do
done
fi
done
cd $cwd
mkdir -p $PREV_INSTALLATION 2> /dev/null # The above actually removes the current directory and parents!
if [ -z "$VBOX_NO_UNINSTALL_MESSAGE" ]; then
info "VirtualBox $INSTALL_VER$INSTALL_REV has been removed successfully."
log "Successfully $INSTALL_VER$INSTALL_REV removed VirtualBox."
fi