postinstall.sh revision 771761cda2c81e899526a0dce22c8cd2510fff82
# 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 "Configuring VirtualBox guest kernel module..."
solaris64dir="amd64"
# vboxguest.sh would've been installed, we just need to call it.
# get what ISA the guest is running
isadir=""
if test "$cputype" = "amd64"; then
isadir="amd64"
fi
# create links
echo "Creating 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..."
# 32-bit x11 drivers
if test -f "$vboxadditions_path/$vboxmouse_src"; then
# Removing redundent files
fi
# 64-bit x11 drivers
if test -f "$vboxadditions64_path/$vboxmouse_src"; then
# Removing redundent files
fi
# 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
# Finalize
# Setup our VBoxService SMF service
echo "Configuring service..."
echo "Done."
echo "Please re-login to activate the X11 guest additions."
echo "If you have just un-installed the previous guest additions a REBOOT is required."
fi
exit $retval