VirtualBox

Changeset 43420 in vbox for trunk/src


Ignore:
Timestamp:
Sep 24, 2012 5:22:54 PM (12 years ago)
Author:
vboxsync
Message:

Solaris/installer: Fix for Solaris 12 kernel package FMRI.

File:
1 edited

Legend:

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

    r43418 r43420  
    256256                STR_KERN_MINOR=`echo "$PKGFMRI" | sed 's/^.*\@//;s/\:.*//;s/.*,//'`
    257257                if test ! -z "$STR_KERN_MINOR"; then
    258                     # The format is "5.11-0.161" or "5.11-0.175.0.0.0.1.0" or "5.11-5.12.0.0.0.4.1"
    259                     HOST_OS_MINORVERSION=`echo "$STR_KERN_MINOR" | cut -f2 -d'-' | cut -f2 -d '.'`
     258                    # The HOST_OS_MINORVERSION is represented as follows:
     259                    # For S12 it represents the build numbers. e.g. for 4  :  "5.11-5.12.0.0.0.4.1"
     260                    # For S11 as the "nevada" version numbers. e.g. for 175:  "5.11-0.161" or "5.11-0.175.0.0.0.1.0"
     261                    if test "$HOST_OS_MAJOR_VERSION" -eq 12; then
     262                        HOST_OS_MINORVERSION=`echo "$STR_KERN_MINOR" | cut -f2 -d'-' | cut -f6 -d '.'`
     263                    elif test "$HOST_OS_MAJORVERSION" -eq 11; then
     264                        HOST_OS_MINORVERSION=`echo "$STR_KERN_MINOR" | cut -f2 -d'-' | cut -f2 -d '.'`
     265                    fi
    260266                else
    261267                    errorprint "Failed to parse the Solaris kernel minor version."
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