VirtualBox

Changeset 12242 in vbox


Ignore:
Timestamp:
Sep 8, 2008 6:05:56 PM (16 years ago)
Author:
vboxsync
Message:

Solaris/installer: yell if the user mixed up his x86/amd64 installs.

File:
1 edited

Legend:

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

    r12211 r12242  
    3838{
    3939    cputype=`isainfo -k`
    40     modulepath="$MODDIR32/$MODNAME"   
     40    modulepath="$MODDIR32/$MODNAME"
    4141    if test "$cputype" = "amd64"; then
    4242        modulepath="$MODDIR64/$MODNAME"
     
    4545        return 0
    4646    fi
    47     abort "VirtualBox kernel module NOT installed."
     47
     48    # Let us go a step further and check if user has mixed up x86/amd64
     49    # amd64 ISA, x86 kernel module??
     50    if test "$cputype" = "amd64"; then
     51        modulepath="$MODDIR32/$MODNAME"
     52        if test -f "$modulepath"; then
     53            abort "## Found x86 module instead of amd64. Please install the amd64 package!"
     54        fi
     55    else
     56        # x86 ISA, amd64 kernel module??
     57        modulepath="$MODDIR64/$MODNAME"
     58        if test -f "$modulepath"; then
     59            abort "## Found amd64 module instead of x86. Please install the x86 package!"
     60        fi
     61    fi
     62
     63    abort "## VirtualBox kernel module NOT installed."
    4864}
    4965
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