907ba2c9b3d1821f95be17115ecad9fe8a2cae02vboxsync#!/bin/sh
2291faee92ebb5cc9722cd3f22e499900a5a411fvboxsync#
907ba2c9b3d1821f95be17115ecad9fe8a2cae02vboxsync# VirtualBox startup script for Solaris Guests Additions
907ba2c9b3d1821f95be17115ecad9fe8a2cae02vboxsync#
15617cf4cb5fa181f4d6f55f987a883cf298cce6vboxsync# Copyright (C) 2008-2011 Oracle Corporation
907ba2c9b3d1821f95be17115ecad9fe8a2cae02vboxsync#
907ba2c9b3d1821f95be17115ecad9fe8a2cae02vboxsync# This file is part of VirtualBox Open Source Edition (OSE), as
907ba2c9b3d1821f95be17115ecad9fe8a2cae02vboxsync# available from http://www.virtualbox.org. This file is free software;
907ba2c9b3d1821f95be17115ecad9fe8a2cae02vboxsync# you can redistribute it and/or modify it under the terms of the GNU
907ba2c9b3d1821f95be17115ecad9fe8a2cae02vboxsync# General Public License (GPL) as published by the Free Software
907ba2c9b3d1821f95be17115ecad9fe8a2cae02vboxsync# Foundation, in version 2 as it comes in the "COPYING" file of the
907ba2c9b3d1821f95be17115ecad9fe8a2cae02vboxsync# VirtualBox OSE distribution. VirtualBox OSE is distributed in the
907ba2c9b3d1821f95be17115ecad9fe8a2cae02vboxsync# hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
907ba2c9b3d1821f95be17115ecad9fe8a2cae02vboxsync#
4b9d6701570cb98fd36e209314239d104ec584d3vboxsync# The contents of this file may alternatively be used under the terms
4b9d6701570cb98fd36e209314239d104ec584d3vboxsync# of the Common Development and Distribution License Version 1.0
4b9d6701570cb98fd36e209314239d104ec584d3vboxsync# (CDDL) only, as it comes in the "COPYING.CDDL" file of the
4b9d6701570cb98fd36e209314239d104ec584d3vboxsync# VirtualBox OSE distribution, in which case the provisions of the
4b9d6701570cb98fd36e209314239d104ec584d3vboxsync# CDDL are applicable instead of those of the GPL.
4b9d6701570cb98fd36e209314239d104ec584d3vboxsync#
4b9d6701570cb98fd36e209314239d104ec584d3vboxsync# You may elect to license modified versions of this file under the
4b9d6701570cb98fd36e209314239d104ec584d3vboxsync# terms and conditions of either the GPL or the CDDL or both.
4b9d6701570cb98fd36e209314239d104ec584d3vboxsync#
907ba2c9b3d1821f95be17115ecad9fe8a2cae02vboxsync
15617cf4cb5fa181f4d6f55f987a883cf298cce6vboxsyncCURRENT_ISA=`isainfo -k`
15617cf4cb5fa181f4d6f55f987a883cf298cce6vboxsyncif test "$CURRENT_ISA" = "amd64"; then
15617cf4cb5fa181f4d6f55f987a883cf298cce6vboxsync INSTALL_DIR="/opt/VirtualBoxAdditions/amd64"
15617cf4cb5fa181f4d6f55f987a883cf298cce6vboxsyncelse
15617cf4cb5fa181f4d6f55f987a883cf298cce6vboxsync INSTALL_DIR="/opt/VirtualBoxAdditions"
907ba2c9b3d1821f95be17115ecad9fe8a2cae02vboxsyncfi
907ba2c9b3d1821f95be17115ecad9fe8a2cae02vboxsync
15617cf4cb5fa181f4d6f55f987a883cf298cce6vboxsyncAPP=`basename $0`
907ba2c9b3d1821f95be17115ecad9fe8a2cae02vboxsynccase "$APP" in
15617cf4cb5fa181f4d6f55f987a883cf298cce6vboxsync VBoxClient)
15617cf4cb5fa181f4d6f55f987a883cf298cce6vboxsync exec "$INSTALL_DIR/VBoxClient" "$@"
15617cf4cb5fa181f4d6f55f987a883cf298cce6vboxsync ;;
15617cf4cb5fa181f4d6f55f987a883cf298cce6vboxsync VBoxService)
15617cf4cb5fa181f4d6f55f987a883cf298cce6vboxsync exec "$INSTALL_DIR/VBoxService" "$@"
15617cf4cb5fa181f4d6f55f987a883cf298cce6vboxsync ;;
15617cf4cb5fa181f4d6f55f987a883cf298cce6vboxsync VBoxControl)
15617cf4cb5fa181f4d6f55f987a883cf298cce6vboxsync exec "$INSTALL_DIR/VBoxControl" "$@"
15617cf4cb5fa181f4d6f55f987a883cf298cce6vboxsync ;;
15617cf4cb5fa181f4d6f55f987a883cf298cce6vboxsync *)
15617cf4cb5fa181f4d6f55f987a883cf298cce6vboxsync echo "Unknown application - $APP"
15617cf4cb5fa181f4d6f55f987a883cf298cce6vboxsync exit 1
15617cf4cb5fa181f4d6f55f987a883cf298cce6vboxsync ;;
907ba2c9b3d1821f95be17115ecad9fe8a2cae02vboxsyncesac
15617cf4cb5fa181f4d6f55f987a883cf298cce6vboxsyncexit 0