儲存庫 vbox 的更動 12481
- 時間撮記:
- 2008-9-16 下午12:12:41 (16 年 以前)
- 檔案:
-
- 修改 1 筆資料
圖例:
- 未更動
- 新增
- 刪除
-
trunk/src/VBox/Additions/x11/installer/VBoxRandR.sh
r12359 r12481 40 40 fi 41 41 42 refreshbin=xrefresh 43 found=`which xrefresh | grep "no xrefresh"` 44 if 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 50 fi 51 42 52 # If we were called with the --test parameter, we check whether the display 43 53 # we are running on is really using the VBox video driver (and RandR 1.2). 44 54 if 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 53 70 fi 54 71 … … 56 73 # which is the one corresponding to the last video mode hint sent by the host. 57 74 $randrbin --output VBOX1 --preferred 58 xrefresh2>&1 > /dev/null75 $refreshbin 2>&1 > /dev/null
注意:
瀏覽 TracChangeset
來幫助您使用更動檢視器