VBox.sh revision 546cd3313d635980a2cc168a79a58b4f0858d784
f9fc8c7343143818644af6caf51a2b2520b8b7a9vboxsync#!/bin/sh
e6b62bbfe72b2586784167aaa552426303ef444fvboxsync# Sun xVM VirtualBox
546cd3313d635980a2cc168a79a58b4f0858d784vboxsync# VirtualBox startup script, Solaris hosts.
f9fc8c7343143818644af6caf51a2b2520b8b7a9vboxsync#
1c94c0a63ba68be1a7b2c640e70d7a06464e4fcavboxsync# Copyright (C) 2007-2008 Sun Microsystems, Inc.
f9fc8c7343143818644af6caf51a2b2520b8b7a9vboxsync#
f9fc8c7343143818644af6caf51a2b2520b8b7a9vboxsync# This file is part of VirtualBox Open Source Edition (OSE), as
f9fc8c7343143818644af6caf51a2b2520b8b7a9vboxsync# available from http://www.virtualbox.org. This file is free software;
f9fc8c7343143818644af6caf51a2b2520b8b7a9vboxsync# you can redistribute it and/or modify it under the terms of the GNU
f9fc8c7343143818644af6caf51a2b2520b8b7a9vboxsync# General Public License (GPL) as published by the Free Software
f9fc8c7343143818644af6caf51a2b2520b8b7a9vboxsync# Foundation, in version 2 as it comes in the "COPYING" file of the
f9fc8c7343143818644af6caf51a2b2520b8b7a9vboxsync# VirtualBox OSE distribution. VirtualBox OSE is distributed in the
f9fc8c7343143818644af6caf51a2b2520b8b7a9vboxsync# hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
f9fc8c7343143818644af6caf51a2b2520b8b7a9vboxsync#
1c94c0a63ba68be1a7b2c640e70d7a06464e4fcavboxsync# Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
1c94c0a63ba68be1a7b2c640e70d7a06464e4fcavboxsync# Clara, CA 95054 USA or visit http://www.sun.com if you need
1c94c0a63ba68be1a7b2c640e70d7a06464e4fcavboxsync# additional information or have any questions.
1c94c0a63ba68be1a7b2c640e70d7a06464e4fcavboxsync#
f9fc8c7343143818644af6caf51a2b2520b8b7a9vboxsync
546cd3313d635980a2cc168a79a58b4f0858d784vboxsyncCURRENT_ISA=`isainfo -k`
546cd3313d635980a2cc168a79a58b4f0858d784vboxsyncif test "$CURRENT_ISA" = "amd64"; then
546cd3313d635980a2cc168a79a58b4f0858d784vboxsync INSTALL_DIR="/opt/VirtualBox/amd64"
546cd3313d635980a2cc168a79a58b4f0858d784vboxsyncelse
546cd3313d635980a2cc168a79a58b4f0858d784vboxsync INSTALL_DIR="/opt/VirtualBox/i386"
546cd3313d635980a2cc168a79a58b4f0858d784vboxsyncfi
f9fc8c7343143818644af6caf51a2b2520b8b7a9vboxsyncAPP=`which $0`
f9fc8c7343143818644af6caf51a2b2520b8b7a9vboxsyncAPP=`basename $APP`
f9fc8c7343143818644af6caf51a2b2520b8b7a9vboxsynccase "$APP" in
f9fc8c7343143818644af6caf51a2b2520b8b7a9vboxsync VirtualBox)
f9fc8c7343143818644af6caf51a2b2520b8b7a9vboxsync exec "$INSTALL_DIR/VirtualBox" "$@"
f9fc8c7343143818644af6caf51a2b2520b8b7a9vboxsync ;;
f9fc8c7343143818644af6caf51a2b2520b8b7a9vboxsync VBoxManage)
f9fc8c7343143818644af6caf51a2b2520b8b7a9vboxsync exec "$INSTALL_DIR/VBoxManage" "$@"
f9fc8c7343143818644af6caf51a2b2520b8b7a9vboxsync ;;
f9fc8c7343143818644af6caf51a2b2520b8b7a9vboxsync VBoxSDL)
f9fc8c7343143818644af6caf51a2b2520b8b7a9vboxsync exec "$INSTALL_DIR/VBoxSDL" "$@"
f9fc8c7343143818644af6caf51a2b2520b8b7a9vboxsync ;;
f9fc8c7343143818644af6caf51a2b2520b8b7a9vboxsync VBoxVRDP)
f9fc8c7343143818644af6caf51a2b2520b8b7a9vboxsync exec "$INSTALL_DIR/VBoxHeadless" "$@"
f9fc8c7343143818644af6caf51a2b2520b8b7a9vboxsync ;;
f9fc8c7343143818644af6caf51a2b2520b8b7a9vboxsync VBoxHeadless)
f9fc8c7343143818644af6caf51a2b2520b8b7a9vboxsync exec "$INSTALL_DIR/VBoxHeadless" "$@"
f9fc8c7343143818644af6caf51a2b2520b8b7a9vboxsync ;;
f9fc8c7343143818644af6caf51a2b2520b8b7a9vboxsync VBoxQtconfig)
4c440f4a25ec216d08c45aed6b58b60f0db32a12vboxsync exec "$INSTALL_DIR/VBoxQtconfig" "$@"
546cd3313d635980a2cc168a79a58b4f0858d784vboxsync ;;
546cd3313d635980a2cc168a79a58b4f0858d784vboxsync VBoxBFE)
546cd3313d635980a2cc168a79a58b4f0858d784vboxsync exec "$INSTALL_DIR/VBoxBFE" "$@"
546cd3313d635980a2cc168a79a58b4f0858d784vboxsync ;;
f9fc8c7343143818644af6caf51a2b2520b8b7a9vboxsync *)
f9fc8c7343143818644af6caf51a2b2520b8b7a9vboxsync echo "Unknown application - $APP"
f9fc8c7343143818644af6caf51a2b2520b8b7a9vboxsync ;;
f9fc8c7343143818644af6caf51a2b2520b8b7a9vboxsyncesac
f9fc8c7343143818644af6caf51a2b2520b8b7a9vboxsync