postinstall.sh revision 546cd3313d635980a2cc168a79a58b4f0858d784
## @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`
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 kernel modules..."
rc=$?
rc=$?
rc=$?
fi
fi
fi
# Fail on any errors while unloading previous modules because it makes it very hard to
# track problems when older vboxdrv is hanging about in memory and add_drv of the new
# one suceeds and it appears as though the new one is being used.
echo "## Configuration failed. Aborting installation."
exit 2
fi
fi
# create symlinks and hardlinks
SYSISAEXEC="/usr/lib/isaexec"
echo "Creating links..."
if test -f "$VBOXBASEDIR/amd64/VirtualBox" || test -f "$VBOXBASEDIR/i386/VirtualBox"; then
fi
if test -f "$VBOXBASEDIR/amd64/VBoxBFE" || test -f "$VBOXBASEDIR/i386/VBoxBFE"; then
fi
if test -f "$VBOXBASEDIR/amd64/VBoxHeadless" || test -f "$VBOXBASEDIR/i386/VBoxHeadless"; then
if test -d $VBOXBASEDIR/amd64; then
/usr/sbin/installf -c none $PKGINST $VBOXBASEDIR/amd64/rdesktop-vrdp-keymaps=$VBOXBASEDIR/rdesktop-vrdp-keymaps s
fi
if test -d $VBOXBASEDIR/i386; then
/usr/sbin/installf -c none $PKGINST $VBOXBASEDIR/i386/rdesktop-vrdp-keymaps=$VBOXBASEDIR/rdesktop-vrdp-keymaps s
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
fi
fi
echo "Done."
# return 20 = requires reboot, 2 = partial failure, 0 = success
exit 0