postinstall.sh revision c4c106ad74e0ad745ac49a2c4182c4f42ced7248
56a353f79df8b3f9ae8d5ff5adc1d373524e3ad4vboxsync# innotek VirtualBox
56a353f79df8b3f9ae8d5ff5adc1d373524e3ad4vboxsync# VirtualBox postinstall script for Solaris.
56a353f79df8b3f9ae8d5ff5adc1d373524e3ad4vboxsync# Copyright (C) 2008 innotek GmbH
56a353f79df8b3f9ae8d5ff5adc1d373524e3ad4vboxsync# This file is part of VirtualBox Open Source Edition (OSE), as
56a353f79df8b3f9ae8d5ff5adc1d373524e3ad4vboxsync# available from http://www.virtualbox.org. This file is free software;
56a353f79df8b3f9ae8d5ff5adc1d373524e3ad4vboxsync# you can redistribute it and/or modify it under the terms of the GNU
56a353f79df8b3f9ae8d5ff5adc1d373524e3ad4vboxsync# General Public License (GPL) as published by the Free Software
56a353f79df8b3f9ae8d5ff5adc1d373524e3ad4vboxsync# Foundation, in version 2 as it comes in the "COPYING" file of the
56a353f79df8b3f9ae8d5ff5adc1d373524e3ad4vboxsync# VirtualBox OSE distribution. VirtualBox OSE is distributed in the
56a353f79df8b3f9ae8d5ff5adc1d373524e3ad4vboxsync# hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
56a353f79df8b3f9ae8d5ff5adc1d373524e3ad4vboxsyncecho "innotek VirtualBox Guest Additions - postinstall script"
56a353f79df8b3f9ae8d5ff5adc1d373524e3ad4vboxsyncecho "This script will setup and load the VirtualBox Guest kernel module..."
56a353f79df8b3f9ae8d5ff5adc1d373524e3ad4vboxsync# vboxguest.sh would've been installed, we just need to call it.
56a353f79df8b3f9ae8d5ff5adc1d373524e3ad4vboxsync$vboxadditions_path/vboxguest.sh restart silentunload
56a353f79df8b3f9ae8d5ff5adc1d373524e3ad4vboxsync# suid permissions for timesync
56a353f79df8b3f9ae8d5ff5adc1d373524e3ad4vboxsyncecho "Setting permissions..."
56a353f79df8b3f9ae8d5ff5adc1d373524e3ad4vboxsync# create links
e366e4992f5d81a0b93412e10d2ef9dc06f930edvboxsyncecho "Creating links..."
56a353f79df8b3f9ae8d5ff5adc1d373524e3ad4vboxsync/usr/sbin/installf -c none $PKGINST /dev/vboxguest=../devices/pci@0,0/pci80ee,cafe@4:vboxguest s
56a353f79df8b3f9ae8d5ff5adc1d373524e3ad4vboxsync/usr/sbin/installf -c none $PKGINST /usr/bin/VBoxClient=$vboxadditions_path/VBoxClient s
56a353f79df8b3f9ae8d5ff5adc1d373524e3ad4vboxsync/usr/sbin/installf -c none $PKGINST /usr/bin/VBoxService=$vboxadditions_path/VBoxService s
56a353f79df8b3f9ae8d5ff5adc1d373524e3ad4vboxsync/usr/sbin/installf -c none $PKGINST /usr/bin/VBoxRandR=$vboxadditions_path/VBoxRandR.sh s
0073ab680739b243ea5b24de5e7d016ee87bab94vboxsync# Install Xorg components to the required places
0073ab680739b243ea5b24de5e7d016ee87bab94vboxsyncxorgversion_long=`/usr/bin/X11/Xorg -version 2>&1 | grep "X Window System Version"`
0073ab680739b243ea5b24de5e7d016ee87bab94vboxsyncxorgversion=`/usr/bin/expr "${xorgversion_long}" : 'X Window System Version \([^ ]*\)'`
0073ab680739b243ea5b24de5e7d016ee87bab94vboxsync vboxmouse_src="$vboxadditions_path/vboxmouse_drv_71.so"
0073ab680739b243ea5b24de5e7d016ee87bab94vboxsync vboxvideo_src="$vboxadditions_path/vboxvideo_drv_13.so"
56a353f79df8b3f9ae8d5ff5adc1d373524e3ad4vboxsync vboxmouse_src="$vboxadditions_path/vboxmouse_drv_14.so"
56a353f79df8b3f9ae8d5ff5adc1d373524e3ad4vboxsync vboxvideo_src="$vboxadditions_path/vboxvideo_drv_14.so"
0073ab680739b243ea5b24de5e7d016ee87bab94vboxsync vboxmouse_src="$vboxadditions_path/vboxmouse_drv_71.so"
0073ab680739b243ea5b24de5e7d016ee87bab94vboxsync vboxvideo_src="$vboxadditions_path/vboxvideo_drv_71.so"
0073ab680739b243ea5b24de5e7d016ee87bab94vboxsync vboxmouse_src="$vboxadditions_path/vboxmouse_drv_70.so"
0073ab680739b243ea5b24de5e7d016ee87bab94vboxsync vboxvideo_src="$vboxadditions_path/vboxvideo_drv_70.so"
if test -z "$vboxmouse_src"; then
echo "Installed VirtualBox mouse and video drivers for Xorg $xorgversion"
# Some distros like Indiana have no xorg.conf, deal with this
if test -d "$vboxclient_dest"; then
exit $retval