1 | #!/bin/sh
|
---|
2 | ## @file
|
---|
3 | # Oracle VM VirtualBox startup script, Solaris hosts.
|
---|
4 | #
|
---|
5 |
|
---|
6 | #
|
---|
7 | # Copyright (C) 2006-2022 Oracle Corporation
|
---|
8 | #
|
---|
9 | # This file is part of VirtualBox Open Source Edition (OSE), as
|
---|
10 | # available from http://www.virtualbox.org. This file is free software;
|
---|
11 | # you can redistribute it and/or modify it under the terms of the GNU
|
---|
12 | # General Public License (GPL) as published by the Free Software
|
---|
13 | # Foundation, in version 2 as it comes in the "COPYING" file of the
|
---|
14 | # VirtualBox OSE distribution. VirtualBox OSE is distributed in the
|
---|
15 | # hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
|
---|
16 | #
|
---|
17 |
|
---|
18 | CURRENT_ISA=`isainfo -k`
|
---|
19 | if test "$CURRENT_ISA" = "amd64"; then
|
---|
20 | INSTALL_DIR="/opt/VirtualBox/amd64"
|
---|
21 | else
|
---|
22 | INSTALL_DIR="/opt/VirtualBox/i386"
|
---|
23 | fi
|
---|
24 |
|
---|
25 | APP=`basename $0`
|
---|
26 | case "$APP" in
|
---|
27 | VirtualBox|virtualbox)
|
---|
28 | exec "$INSTALL_DIR/VirtualBox" "$@"
|
---|
29 | ;;
|
---|
30 | VirtualBoxVM|virtualboxvm)
|
---|
31 | exec "$INSTALL_DIR/VirtualBoxVM" "$@"
|
---|
32 | ;;
|
---|
33 | VBoxManage|vboxmanage)
|
---|
34 | exec "$INSTALL_DIR/VBoxManage" "$@"
|
---|
35 | ;;
|
---|
36 | VBoxSDL|vboxsdl)
|
---|
37 | exec "$INSTALL_DIR/VBoxSDL" "$@"
|
---|
38 | ;;
|
---|
39 | VBoxVRDP|VBoxHeadless|vboxheadless)
|
---|
40 | exec "$INSTALL_DIR/VBoxHeadless" "$@"
|
---|
41 | ;;
|
---|
42 | VBoxBugReport|vboxbugreport)
|
---|
43 | exec "$INSTALL_DIR/VBoxBugReport" "$@"
|
---|
44 | ;;
|
---|
45 | VBoxBalloonCtrl|vboxballoonctrl)
|
---|
46 | exec "$INSTALL_DIR/VBoxBalloonCtrl" "$@"
|
---|
47 | ;;
|
---|
48 | VBoxAutostart|vboxautostart)
|
---|
49 | exec "$INSTALL_DIR/VBoxAutostart" "$@"
|
---|
50 | ;;
|
---|
51 | VBoxDTrace|vboxdtrace)
|
---|
52 | exec "$INSTALL_DIR/VBoxDTrace" "$@"
|
---|
53 | ;;
|
---|
54 | VBoxAudioTest|vboxaudiotest|vkat)
|
---|
55 | exec "$INSTALL_DIR/VBoxAudioTest" "$@"
|
---|
56 | ;;
|
---|
57 | vboxwebsrv)
|
---|
58 | exec "$INSTALL_DIR/vboxwebsrv" "$@"
|
---|
59 | ;;
|
---|
60 | VBoxQtconfig)
|
---|
61 | exec "$INSTALL_DIR/VBoxQtconfig" "$@"
|
---|
62 | ;;
|
---|
63 | vbox-img)
|
---|
64 | exec "$INSTALL_DIR/vbox-img" "$0"
|
---|
65 | ;;
|
---|
66 | *)
|
---|
67 | echo "Unknown application - $APP"
|
---|
68 | exit 1
|
---|
69 | ;;
|
---|
70 | esac
|
---|
71 | exit 0
|
---|
72 |
|
---|