VirtualBox

Ignore:
Timestamp:
May 30, 2011 12:35:45 PM (14 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
71978
Message:

Installer/linux+solaris: clean up VBox.sh

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/solaris/Installer/VBox.sh

    r33656 r37255  
    33# VirtualBox startup script for Solaris Guests Additions
    44#
    5 # Copyright (C) 2008-2010 Oracle Corporation
     5# Copyright (C) 2008-2011 Oracle Corporation
    66#
    77# This file is part of VirtualBox Open Source Edition (OSE), as
     
    2323#
    2424
    25 CPUTYPE=`isainfo -k`
    26 ISADIR=""
    27 if test "$CPUTYPE" = "amd64"; then
    28     ISADIR="amd64"
     25CURRENT_ISA=`isainfo -k`
     26if test "$CURRENT_ISA" = "amd64"; then
     27    INSTALL_DIR="/opt/VirtualBoxAdditions/amd64"
     28else
     29    INSTALL_DIR="/opt/VirtualBoxAdditions"
    2930fi
    3031
    31 INSTALL_DIR="/opt/VirtualBoxAdditions"
    32 APP=`which $0`
    33 APP=`basename $APP`
     32APP=`basename $0`
    3433case "$APP" in
    35   VBoxClient)
    36     exec "$INSTALL_DIR/$ISADIR/VBoxClient" "$@"
    37   ;;
    38   VBoxService)
    39     exec "$INSTALL_DIR/$ISADIR/VBoxService" "$@"
    40   ;;
    41   VBoxControl)
    42     exec "$INSTALL_DIR/$ISADIR/VBoxControl" "$@"
    43   ;;
    44   *)
    45     echo "Unknown application - $APP"
    46   ;;
     34    VBoxClient)
     35        exec "$INSTALL_DIR/VBoxClient" "$@"
     36        ;;
     37    VBoxService)
     38        exec "$INSTALL_DIR/VBoxService" "$@"
     39        ;;
     40    VBoxControl)
     41        exec "$INSTALL_DIR/VBoxControl" "$@"
     42        ;;
     43    *)
     44        echo "Unknown application - $APP"
     45        exit 1
     46        ;;
    4747esac
    48 
     48exit 0
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette