postinstall.sh revision 9a08dd6ed47cffa9cacbb9d53db1ce71d04db61f
7db630a55be9d955c8ac125da609b304cbcc6010vboxsync# Sun xVM VirtualBox
7db630a55be9d955c8ac125da609b304cbcc6010vboxsync# VirtualBox postinstall script for Solaris.
7db630a55be9d955c8ac125da609b304cbcc6010vboxsync# Copyright (C) 2008 Sun Microsystems, Inc.
1c94c0a63ba68be1a7b2c640e70d7a06464e4fcavboxsync# This file is part of VirtualBox Open Source Edition (OSE), as
a16eb14ad7a4b5ef91ddc22d3e8e92d930f736fcvboxsync# available from http://www.virtualbox.org. This file is free software;
a16eb14ad7a4b5ef91ddc22d3e8e92d930f736fcvboxsync# you can redistribute it and/or modify it under the terms of the GNU
a16eb14ad7a4b5ef91ddc22d3e8e92d930f736fcvboxsync# General Public License (GPL) as published by the Free Software
a16eb14ad7a4b5ef91ddc22d3e8e92d930f736fcvboxsync# Foundation, in version 2 as it comes in the "COPYING" file of the
a16eb14ad7a4b5ef91ddc22d3e8e92d930f736fcvboxsync# VirtualBox OSE distribution. VirtualBox OSE is distributed in the
a16eb14ad7a4b5ef91ddc22d3e8e92d930f736fcvboxsync# hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
a16eb14ad7a4b5ef91ddc22d3e8e92d930f736fcvboxsync# Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
a16eb14ad7a4b5ef91ddc22d3e8e92d930f736fcvboxsync# Clara, CA 95054 USA or visit http://www.sun.com if you need
a16eb14ad7a4b5ef91ddc22d3e8e92d930f736fcvboxsync# additional information or have any questions.
1c94c0a63ba68be1a7b2c640e70d7a06464e4fcavboxsync uncompress -f "$1/vboxvideo_drv_13.so.Z" > /dev/null 2>&1
1c94c0a63ba68be1a7b2c640e70d7a06464e4fcavboxsync uncompress -f "$1/vboxvideo_drv_14.so.Z" > /dev/null 2>&1
1c94c0a63ba68be1a7b2c640e70d7a06464e4fcavboxsync uncompress -f "$1/vboxvideo_drv_15.so.Z" > /dev/null 2>&1
1c94c0a63ba68be1a7b2c640e70d7a06464e4fcavboxsync uncompress -f "$1/vboxvideo_drv_71.so.Z" > /dev/null 2>&1
7db630a55be9d955c8ac125da609b304cbcc6010vboxsync uncompress -f "$1/vboxmouse_drv_14.so.Z" > /dev/null 2>&1
7db630a55be9d955c8ac125da609b304cbcc6010vboxsync uncompress -f "$1/vboxmouse_drv_15.so.Z" > /dev/null 2>&1
7db630a55be9d955c8ac125da609b304cbcc6010vboxsync uncompress -f "$1/vboxmouse_drv_70.so.Z" > /dev/null 2>&1
7db630a55be9d955c8ac125da609b304cbcc6010vboxsync uncompress -f "$1/vboxmouse_drv_71.so.Z" > /dev/null 2>&1
7db630a55be9d955c8ac125da609b304cbcc6010vboxsync# uncompress if necessary
7db630a55be9d955c8ac125da609b304cbcc6010vboxsyncif test -f "$vboxadditions_path/VBoxClient.Z" || test -f "$vboxadditions64_path/VBoxClient.Z"; then
7db630a55be9d955c8ac125da609b304cbcc6010vboxsync echo "Uncompressing files..."
7db630a55be9d955c8ac125da609b304cbcc6010vboxsync if test -f "$vboxadditions_path/VBoxClient.Z"; then
7db630a55be9d955c8ac125da609b304cbcc6010vboxsync if test -f "$vboxadditions64_path/VBoxClient.Z"; then
7db630a55be9d955c8ac125da609b304cbcc6010vboxsync# vboxguest.sh would've been installed, we just need to call it.
7db630a55be9d955c8ac125da609b304cbcc6010vboxsyncecho "Configuring VirtualBox guest kernel module..."
7db630a55be9d955c8ac125da609b304cbcc6010vboxsync$vboxadditions_path/vboxguest.sh restart silentunload
7db630a55be9d955c8ac125da609b304cbcc6010vboxsync/name=vboxguest/d' /etc/devlink.tab > /etc/devlink.vbox
7db630a55be9d955c8ac125da609b304cbcc6010vboxsyncecho "type=ddi_pseudo;name=vboxguest \D" >> /etc/devlink.vbox
7db630a55be9d955c8ac125da609b304cbcc6010vboxsync# create the device link
7db630a55be9d955c8ac125da609b304cbcc6010vboxsync# get what ISA the guest is running
7db630a55be9d955c8ac125da609b304cbcc6010vboxsync# create links
7db630a55be9d955c8ac125da609b304cbcc6010vboxsyncecho "Creating links..."
if test -z "$vboxmouse_src"; then
if test -f "$vboxadditions_path/$vboxmouse_src"; then
if test -f "$vboxadditions64_path/$vboxmouse_src"; then
# Some distros like Indiana have no xorg.conf, deal with this
if test -d "$vboxclient_dest"; then
exit $retval