1 | #!/bin/sh
|
---|
2 | ## @file
|
---|
3 | # Oracle VirtualBox startup script, Solaris hosts.
|
---|
4 | #
|
---|
5 |
|
---|
6 | #
|
---|
7 | # Copyright (C) 2006-2024 Oracle and/or its affiliates.
|
---|
8 | #
|
---|
9 | # This file is part of VirtualBox base platform packages, as
|
---|
10 | # available from https://www.virtualbox.org.
|
---|
11 | #
|
---|
12 | # This program is free software; you can redistribute it and/or
|
---|
13 | # modify it under the terms of the GNU General Public License
|
---|
14 | # as published by the Free Software Foundation, in version 3 of the
|
---|
15 | # License.
|
---|
16 | #
|
---|
17 | # This program is distributed in the hope that it will be useful, but
|
---|
18 | # WITHOUT ANY WARRANTY; without even the implied warranty of
|
---|
19 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
---|
20 | # General Public License for more details.
|
---|
21 | #
|
---|
22 | # You should have received a copy of the GNU General Public License
|
---|
23 | # along with this program; if not, see <https://www.gnu.org/licenses>.
|
---|
24 | #
|
---|
25 | # SPDX-License-Identifier: GPL-3.0-only
|
---|
26 | #
|
---|
27 |
|
---|
28 | CURRENT_ISA=`isainfo -k`
|
---|
29 | if test "$CURRENT_ISA" = "amd64"; then
|
---|
30 | INSTALL_DIR="/opt/VirtualBox/amd64"
|
---|
31 | else
|
---|
32 | INSTALL_DIR="/opt/VirtualBox/i386"
|
---|
33 | fi
|
---|
34 |
|
---|
35 | APP=`basename $0`
|
---|
36 | case "$APP" in
|
---|
37 | VirtualBox|virtualbox)
|
---|
38 | exec "$INSTALL_DIR/VirtualBox" "$@"
|
---|
39 | ;;
|
---|
40 | VirtualBoxVM|virtualboxvm)
|
---|
41 | exec "$INSTALL_DIR/VirtualBoxVM" "$@"
|
---|
42 | ;;
|
---|
43 | VBoxManage|vboxmanage)
|
---|
44 | exec "$INSTALL_DIR/VBoxManage" "$@"
|
---|
45 | ;;
|
---|
46 | VBoxSDL|vboxsdl)
|
---|
47 | exec "$INSTALL_DIR/VBoxSDL" "$@"
|
---|
48 | ;;
|
---|
49 | VBoxVRDP|VBoxHeadless|vboxheadless)
|
---|
50 | exec "$INSTALL_DIR/VBoxHeadless" "$@"
|
---|
51 | ;;
|
---|
52 | VBoxBugReport|vboxbugreport)
|
---|
53 | exec "$INSTALL_DIR/VBoxBugReport" "$@"
|
---|
54 | ;;
|
---|
55 | VBoxBalloonCtrl|vboxballoonctrl)
|
---|
56 | exec "$INSTALL_DIR/VBoxBalloonCtrl" "$@"
|
---|
57 | ;;
|
---|
58 | VBoxAutostart|vboxautostart)
|
---|
59 | exec "$INSTALL_DIR/VBoxAutostart" "$@"
|
---|
60 | ;;
|
---|
61 | VBoxDTrace|vboxdtrace)
|
---|
62 | exec "$INSTALL_DIR/VBoxDTrace" "$@"
|
---|
63 | ;;
|
---|
64 | VBoxAudioTest|vboxaudiotest|vkat)
|
---|
65 | exec "$INSTALL_DIR/VBoxAudioTest" "$@"
|
---|
66 | ;;
|
---|
67 | vboxwebsrv)
|
---|
68 | exec "$INSTALL_DIR/vboxwebsrv" "$@"
|
---|
69 | ;;
|
---|
70 | VBoxQtconfig)
|
---|
71 | exec "$INSTALL_DIR/VBoxQtconfig" "$@"
|
---|
72 | ;;
|
---|
73 | vbox-img)
|
---|
74 | exec "$INSTALL_DIR/vbox-img" "$0"
|
---|
75 | ;;
|
---|
76 | *)
|
---|
77 | echo "Unknown application - $APP"
|
---|
78 | exit 1
|
---|
79 | ;;
|
---|
80 | esac
|
---|
81 | exit 0
|
---|