f9fc8c7343143818644af6caf51a2b2520b8b7a9vboxsync#!/bin/sh
50e5e7a2b25a463c312cf741832fcc34d36557bdvboxsync## @file
15617cf4cb5fa181f4d6f55f987a883cf298cce6vboxsync# Oracle VM VirtualBox startup script, Solaris hosts.
f9fc8c7343143818644af6caf51a2b2520b8b7a9vboxsync#
50e5e7a2b25a463c312cf741832fcc34d36557bdvboxsync
50e5e7a2b25a463c312cf741832fcc34d36557bdvboxsync#
50e5e7a2b25a463c312cf741832fcc34d36557bdvboxsync# Copyright (C) 2006-2015 Oracle Corporation
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#
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
15617cf4cb5fa181f4d6f55f987a883cf298cce6vboxsync
15617cf4cb5fa181f4d6f55f987a883cf298cce6vboxsyncAPP=`basename $0`
f9fc8c7343143818644af6caf51a2b2520b8b7a9vboxsynccase "$APP" in
15617cf4cb5fa181f4d6f55f987a883cf298cce6vboxsync VirtualBox|virtualbox)
15617cf4cb5fa181f4d6f55f987a883cf298cce6vboxsync exec "$INSTALL_DIR/VirtualBox" "$@"
15617cf4cb5fa181f4d6f55f987a883cf298cce6vboxsync ;;
15617cf4cb5fa181f4d6f55f987a883cf298cce6vboxsync VBoxManage|vboxmanage)
15617cf4cb5fa181f4d6f55f987a883cf298cce6vboxsync exec "$INSTALL_DIR/VBoxManage" "$@"
15617cf4cb5fa181f4d6f55f987a883cf298cce6vboxsync ;;
15617cf4cb5fa181f4d6f55f987a883cf298cce6vboxsync VBoxSDL|vboxsdl)
15617cf4cb5fa181f4d6f55f987a883cf298cce6vboxsync exec "$INSTALL_DIR/VBoxSDL" "$@"
15617cf4cb5fa181f4d6f55f987a883cf298cce6vboxsync ;;
15617cf4cb5fa181f4d6f55f987a883cf298cce6vboxsync VBoxVRDP|VBoxHeadless|vboxheadless)
15617cf4cb5fa181f4d6f55f987a883cf298cce6vboxsync exec "$INSTALL_DIR/VBoxHeadless" "$@"
15617cf4cb5fa181f4d6f55f987a883cf298cce6vboxsync ;;
15617cf4cb5fa181f4d6f55f987a883cf298cce6vboxsync VBoxBalloonCtrl|vboxballoonctrl)
15617cf4cb5fa181f4d6f55f987a883cf298cce6vboxsync exec "$INSTALL_DIR/VBoxBalloonCtrl" "$@"
15617cf4cb5fa181f4d6f55f987a883cf298cce6vboxsync ;;
395d92a7732aad3c0b9baecedfabba5113b84485vboxsync VBoxAutostart|vboxautostart)
395d92a7732aad3c0b9baecedfabba5113b84485vboxsync exec "$INSTALL_DIR/VBoxAutostart" "$@"
395d92a7732aad3c0b9baecedfabba5113b84485vboxsync ;;
50e5e7a2b25a463c312cf741832fcc34d36557bdvboxsync VBoxDTrace|vboxdtrace)
50e5e7a2b25a463c312cf741832fcc34d36557bdvboxsync exec "$INSTALL_DIR/VBoxDTrace" "$@"
50e5e7a2b25a463c312cf741832fcc34d36557bdvboxsync ;;
15617cf4cb5fa181f4d6f55f987a883cf298cce6vboxsync vboxwebsrv)
15617cf4cb5fa181f4d6f55f987a883cf298cce6vboxsync exec "$INSTALL_DIR/vboxwebsrv" "$@"
15617cf4cb5fa181f4d6f55f987a883cf298cce6vboxsync ;;
15617cf4cb5fa181f4d6f55f987a883cf298cce6vboxsync VBoxQtconfig)
15617cf4cb5fa181f4d6f55f987a883cf298cce6vboxsync exec "$INSTALL_DIR/VBoxQtconfig" "$@"
15617cf4cb5fa181f4d6f55f987a883cf298cce6vboxsync ;;
a3f342a86f026f46fed32aae20ca045db066d141vboxsync vbox-img)
a3f342a86f026f46fed32aae20ca045db066d141vboxsync exec "$INSTALL_DIR/vbox-img" "$0"
a3f342a86f026f46fed32aae20ca045db066d141vboxsync ;;
15617cf4cb5fa181f4d6f55f987a883cf298cce6vboxsync *)
15617cf4cb5fa181f4d6f55f987a883cf298cce6vboxsync echo "Unknown application - $APP"
15617cf4cb5fa181f4d6f55f987a883cf298cce6vboxsync exit 1
15617cf4cb5fa181f4d6f55f987a883cf298cce6vboxsync ;;
f9fc8c7343143818644af6caf51a2b2520b8b7a9vboxsyncesac
15617cf4cb5fa181f4d6f55f987a883cf298cce6vboxsyncexit 0
a3f342a86f026f46fed32aae20ca045db066d141vboxsync