postinstall.sh revision 6dc98f1ea961efeeaf2624e4022634fa5a650cb6
# Sun xVM VirtualBox
# VirtualBox postinstall script for Solaris.
#
# Copyright (C) 2008 Sun Microsystems, Inc.
#
# 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.
#
# Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
# Clara, CA 95054 USA or visit http://www.sun.com if you need
# additional information or have any questions.
#
echo "Sun xVM VirtualBox Guest Additions - postinstall script"
echo "This script will setup and load the VirtualBox Guest kernel module..."
# vboxguest.sh would've been installed, we just need to call it.
# suid permissions for timesync
# create links
# Install Xorg components to the required places
case "$xorgversion" in
1.3.* )
;;
1.4.* )
;;
7.1.* | *7.2.* )
;;
6.9.* | 7.0.* )
;;
esac
retval=0
if test -z "$vboxmouse_src"; then
echo "*** Unknown version of the X Window System installed."
echo "*** Failed to install the VirtualBox X Window System drivers."
# Exit as partially failed installation
retval=2
else
echo "Configuring Xorg..."
# Removing redudant files
# Some distros like Indiana have no xorg.conf, deal with this
fi
fi
# Setup our VBoxClient
echo "Configuring client..."
if test -d "$vboxclient_dest"; then
else
echo "*** Failed to configure client!! Couldn't find autostart directory."
retval=2
fi
# Remove redundant files
# Setup our VBoxService SMF service
echo "Configuring service..."
echo "Done."
echo "Please re-login to activate the X11 guest additions."
fi
exit $retval