VirtualBox

Changeset 22120 in vbox for trunk/src/VBox/Installer


Ignore:
Timestamp:
Aug 10, 2009 9:27:35 AM (15 years ago)
Author:
vboxsync
Message:

Solaris/Installer: vboxconfig.sh bits.

File:
1 edited

Legend:

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

    r22119 r22120  
    8282}
    8383
    84 success()
    85 {
    86     if test "$ISSILENT" != "$SILENTOP"; then
    87         echo 1>&2 "$1"
    88     fi
    89 }
    90 
    9184errorprint()
    9285{
     
    180173{
    181174    cputype=`isainfo -k`
    182     modulepath="$DIR_MOD_32/$MOD_VBOXDRV"
    183     if test "$cputype" = "amd64"; then
    184         modulepath="$DIR_MOD_64/$MOD_VBOXDRV"
    185     elif test "$cputype" != "i386"; then
    186         errorprint "VirtualBox works only on i386/amd64 architectures, not $cputype"
    187         exit 1
    188     fi
    189 
    190     # If things are where they should be, return success
    191     if test -f "$modulepath" || test -h "$modulepath"; then
    192         return 0
    193     fi
    194 
    195     # Something's screwed, let us go a step further and check if user has mixed up x86/amd64
    196     # amd64 ISA, x86 kernel module??
    197     if test "$cputype" = "amd64"; then
    198         modulepath="$DIR_MOD_32/$MOD_VBOXDRV"
    199         if test -f "$modulepath"; then
    200             errorprint "Found 32-bit module instead of 64-bit. Please install the amd64 package!"
    201             exit 1
    202         fi
    203     else
    204         # x86 ISA, amd64 kernel module??
    205         modulepath="$DIR_MOD_64/$MOD_VBOXDRV"
    206         if test -f "$modulepath"; then
    207             errorprint "Found 64-bit module instead of 32-bit. Please install the x86 package!"
    208             exit 1
    209         fi
    210     fi
    211 
    212     # Shouldn't really happen...
    213     errorprint "VirtualBox Host kernel module NOT installed."
    214     exit 1
     175    if test "$cputype" != "amd64" || test "$cputype" != "i386"; then
     176        errorprint "VirtualBox works only on i386/amd64 hosts, not $cputype"
     177        exit 1
     178    fi
    215179}
    216180
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