VirtualBox

Ignore:
Timestamp:
Mar 11, 2009 3:02:54 PM (16 years ago)
Author:
vboxsync
Message:

Solaris/Additions: fix resizing issue with Xorg 1.3.x.

File:
1 edited

Legend:

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

    r17579 r17698  
    194194    # Some distros like Indiana have no xorg.conf, deal with this
    195195    if test ! -f '/etc/X11/xorg.conf' && test ! -f '/etc/X11/.xorg.conf'; then
    196         /usr/sbin/removef $PKGINST $vboxadditions_path/solarix_xorg.conf 1>/dev/null
    197         mv -f $vboxadditions_path/solaris_xorg.conf /etc/X11/.xorg.conf
     196
     197        # Xorg 1.3.x+ should use the modeline less Xorg confs while older should
     198        # use ones with all the video modelines in place. Argh.
     199        xorgconf_file="solaris_xorg_modeless.conf"
     200        xorgconf_unfit="solaris_xorg.conf"
     201        case "$xorgversion" in
     202            7.1.* | 7.2.* | 6.9.* | 7.0.* )
     203                xorgconf_file="solaris_xorg.conf"
     204                xorgconf_unfit="solaris_xorg_modeless.conf"
     205                ;;
     206        esac
     207
     208        /usr/sbin/removef $PKGINST $vboxadditions_path/$xorgconf_file 1>/dev/null
     209        mv -f $vboxadditions_path/$xorgconf_file /etc/X11/.xorg.conf
     210
     211        /usr/sbin/removef $PKGINST $vboxadditions_path/$xorgconf_unfit 1>/dev/null
     212        rm -f $vboxadditions_path/$xorgconf_unfit
    198213    fi
    199214
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