1 | #!/bin/sh
|
---|
2 | # $Id: VBox.sh 76553 2019-01-01 01:45:53Z vboxsync $
|
---|
3 | ## @file
|
---|
4 | # VirtualBox startup script for Solaris Guests Additions
|
---|
5 | #
|
---|
6 |
|
---|
7 | #
|
---|
8 | # Copyright (C) 2008-2019 Oracle Corporation
|
---|
9 | #
|
---|
10 | # This file is part of VirtualBox Open Source Edition (OSE), as
|
---|
11 | # available from http://www.virtualbox.org. This file is free software;
|
---|
12 | # you can redistribute it and/or modify it under the terms of the GNU
|
---|
13 | # General Public License (GPL) as published by the Free Software
|
---|
14 | # Foundation, in version 2 as it comes in the "COPYING" file of the
|
---|
15 | # VirtualBox OSE distribution. VirtualBox OSE is distributed in the
|
---|
16 | # hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
|
---|
17 | #
|
---|
18 | # The contents of this file may alternatively be used under the terms
|
---|
19 | # of the Common Development and Distribution License Version 1.0
|
---|
20 | # (CDDL) only, as it comes in the "COPYING.CDDL" file of the
|
---|
21 | # VirtualBox OSE distribution, in which case the provisions of the
|
---|
22 | # CDDL are applicable instead of those of the GPL.
|
---|
23 | #
|
---|
24 | # You may elect to license modified versions of this file under the
|
---|
25 | # terms and conditions of either the GPL or the CDDL or both.
|
---|
26 | #
|
---|
27 |
|
---|
28 | CURRENT_ISA=`isainfo -k`
|
---|
29 | if test "$CURRENT_ISA" = "amd64"; then
|
---|
30 | INSTALL_DIR="/opt/VirtualBoxAdditions/amd64"
|
---|
31 | else
|
---|
32 | INSTALL_DIR="/opt/VirtualBoxAdditions"
|
---|
33 | fi
|
---|
34 |
|
---|
35 | APP=`basename $0`
|
---|
36 | case "$APP" in
|
---|
37 | VBoxClient)
|
---|
38 | exec "$INSTALL_DIR/VBoxClient" "$@"
|
---|
39 | ;;
|
---|
40 | VBoxService)
|
---|
41 | exec "$INSTALL_DIR/VBoxService" "$@"
|
---|
42 | ;;
|
---|
43 | VBoxControl)
|
---|
44 | exec "$INSTALL_DIR/VBoxControl" "$@"
|
---|
45 | ;;
|
---|
46 | *)
|
---|
47 | echo "Unknown application - $APP"
|
---|
48 | exit 1
|
---|
49 | ;;
|
---|
50 | esac
|
---|
51 | exit 0
|
---|