VirtualBox

Ignore:
Timestamp:
Nov 29, 2012 4:15:22 PM (12 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
82387
Message:

Solaris/Additions: Ship X.Org 1.13 drivers and fixed the installer to handle X.Org versions more generically.

File:
1 edited

Legend:

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

    r42469 r43998  
    4949}
    5050
     51# uncompress_files(directory_with_*.Z_files)
    5152uncompress_files()
    5253{
    53     # VBox guest files
    54     uncompress_file "$1" "VBoxClient"
    55     uncompress_file "$1" "VBoxService"
    56     uncompress_file "$1" "VBoxControl"
    57 
    58     # VBox Xorg Video drivers
    59     uncompress_file "$1" "vboxvideo_drv_13.so"
    60     uncompress_file "$1" "vboxvideo_drv_14.so"
    61     uncompress_file "$1" "vboxvideo_drv_15.so"
    62     uncompress_file "$1" "vboxvideo_drv_16.so"
    63     uncompress_file "$1" "vboxvideo_drv_17.so"
    64     uncompress_file "$1" "vboxvideo_drv_18.so"
    65     uncompress_file "$1" "vboxvideo_drv_19.so"
    66     uncompress_file "$1" "vboxvideo_drv_110.so"
    67     uncompress_file "$1" "vboxvideo_drv_111.so"
    68     uncompress_file "$1" "vboxvideo_drv_112.so"
    69     uncompress_file "$1" "vboxvideo_drv_70.so"
    70     uncompress_file "$1" "vboxvideo_drv_71.so"
     54    for i in "${1}/"*.Z; do
     55        uncompress_file "${1}" "`basename \"${i}\" .Z`"
     56    done
    7157}
    7258
     
    144130    fi
    145131
    146     vboxvideo_src=""
    147 
     132    # "X.Y.Z" - strip off all numerics after the 2nd '.' character, e.g. "1.11.3" -> "1.11"
     133    # Then the next sed, strips of all '.' characters, "1.11" -> "111".
     134    fileversion=`echo $xorgversion | sed "s/\.[0-9]*//2" | sed "s/\.//"`
     135    vboxvideo_src="vboxvideo_drv_$fileversion.so"
     136
     137    # Handle exceptions now where the X.org version does not exactly match the file-version.
    148138    case "$xorgversion" in
    149         1.3.* )
    150             vboxvideo_src="vboxvideo_drv_13.so"
    151             ;;
    152         1.4.* )
    153             vboxvideo_src="vboxvideo_drv_14.so"
    154             ;;
    155         1.5.99 | 1.6.* )
     139        1.5.99 )
    156140            vboxvideo_src="vboxvideo_drv_16.so"
    157141            ;;
    158         1.5.* )
    159             vboxvideo_src="vboxvideo_drv_15.so"
    160             ;;
    161         1.7.*)
    162             vboxvideo_src="vboxvideo_drv_17.so"
    163             ;;
    164         1.8.*)
    165             vboxvideo_src="vboxvideo_drv_18.so"
    166             ;;
    167         1.9.*)
    168             vboxvideo_src="vboxvideo_drv_19.so"
    169             ;;
    170         1.10.*)
    171             vboxvideo_src="vboxvideo_drv_110.so"
    172             ;;
    173         1.11.*)
    174             vboxvideo_src="vboxvideo_drv_111.so"
    175             ;;
    176         1.12.*)
    177             vboxvideo_src="vboxvideo_drv_112.so"
    178             ;;
    179         7.1.* | *7.2.* )
     142        7.2.* )
    180143            vboxvideo_src="vboxvideo_drv_71.so"
    181144            ;;
    182         6.9.* | 7.0.* )
     145        6.9.* )
    183146            vboxvideo_src="vboxvideo_drv_70.so"
    184147            ;;
     
    189152        echo "*** Unknown version of the X Window System installed."
    190153        echo "*** Failed to install the VirtualBox X Window System drivers."
     154
     155        # Exit as partially failed installation
     156        retval=2
     157    elif test ! -f "$vboxadditions32_path/$vboxvideo_src" && test ! -f "$vboxadditions64_path/$vboxvideo_src"; then
     158        echo "*** $vboxadditions32_path/$vboxvideo_src or $vboxadditions64_path/$vboxvideo_src not found!"
     159        echo "*** Failed to install the VirtualBox X.org drivers."
    191160
    192161        # Exit as partially failed installation
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