postinstall.sh revision aa6929adf39d3b1c4479a63d9537888fa83bcf65
## @file
# Sun xVM VirtualBox
# VirtualBox postinstall script for Solaris.
#
#
# Copyright (C) 2007-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.
#
currentisa=`uname -i`
osrevision=`uname -r`
if test "$currentisa" = "i86xpv"; then
echo "## VirtualBox cannot run under xVM Dom0! Fatal Error, Aborting installation!"
exit 2
fi
if test "$currentzone" = "global"; then
echo "Configuring VirtualBox Host kernel module(s)..."
rc=$?
echo "## Kernel module configuration failed! Aborting installation..."
exit 2
fi
fi
fi
# create links
echo "Creating links..."
# Qt links
fi
fi
fi
if test "$currentzone" = "global"; then
# Web service
fi
# add vboxdrv to the devlink.tab
sed -e '
# create the device link
# We need to touch the desktop link in order to add it to the menu right away
if test -f "/usr/share/applications/virtualbox.desktop"; then
fi
# Zone access service only necessary for Solaris 10
if test "$osrevision" = "5.10"; then
cp /opt/VirtualBox/virtualbox-zoneaccess.xml /var/svc/manifest/application/virtualbox/zoneaccess.xml
else
fi
fi
echo "Done."
# return 20 = requires reboot, 2 = partial failure, 0 = success
exit 0