VirtualBox

儲存庫 vbox 的更動 12481


忽略:
時間撮記:
2008-9-16 下午12:12:41 (16 年 以前)
作者:
vboxsync
訊息:

Additions/x11: Fixed VBoxRandR regression.

檔案:
修改 1 筆資料

圖例:

未更動
新增
刪除
  • trunk/src/VBox/Additions/x11/installer/VBoxRandR.sh

    r12359 r12481  
    4040fi
    4141
     42refreshbin=xrefresh
     43found=`which xrefresh | grep "no xrefresh"`
     44if test ! -z "$found"; then
     45    if test -f "/usr/X11/bin/xrefresh"; then
     46        refreshbin=/usr/X11/bin/xrefresh
     47    else
     48        exit 1
     49    fi
     50fi
     51
    4252# If we were called with the --test parameter, we check whether the display
    4353# we are running on is really using the VBox video driver (and RandR 1.2).
    4454if test "$1" = "--test"; then
    45   xout=`X -version 2>&1`
    46   ! echo "$xout" | grep 1.4.99.901 > /dev/null &&
    47   ! echo "$xout" | grep 1.4.99.902 > /dev/null &&
    48   ! echo "$xout" | grep 1.4.99.903 > /dev/null &&
    49   ! echo "$xout" | grep 1.4.99.904 > /dev/null &&
    50   ! echo "$xout" | grep 1.4.99.905 > /dev/null &&
    51   $randrbin 2> /dev/null | grep VBOX1 > /dev/null
    52   exit
     55    # @otodo to be fixed properly
     56    osname=`uname -s`
     57    if test "$osname" = "SunOS"; then
     58        $randrbin 2> /dev/null | grep VBOX1 > /dev/null
     59        exit
     60    else
     61        xout=`$xorgbin -version 2>&1`
     62        ! echo "$xout" | grep 1.4.99.901 > /dev/null &&
     63        ! echo "$xout" | grep 1.4.99.902 > /dev/null &&
     64        ! echo "$xout" | grep 1.4.99.903 > /dev/null &&
     65        ! echo "$xout" | grep 1.4.99.904 > /dev/null &&
     66        ! echo "$xout" | grep 1.4.99.905 > /dev/null &&
     67        $randrbin 2> /dev/null | grep VBOX1 > /dev/null
     68        exit
     69    fi
    5370fi
    5471
     
    5673# which is the one corresponding to the last video mode hint sent by the host.
    5774$randrbin --output VBOX1 --preferred
    58 xrefresh 2>&1 > /dev/null
     75$refreshbin 2>&1 > /dev/null
注意: 瀏覽 TracChangeset 來幫助您使用更動檢視器

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette