xorg: fix when nouveau/modeset is returning -1 instead of 1 (treat as 1)

This commit is contained in:
Silvan Calarco 2013-04-05 14:54:33 +02:00
parent 61f21f23ee
commit 652a22aa91

View File

@ -185,6 +185,7 @@ if [ -e $XORGCONF ]; then
VIDEODRIVER=${VIDEODRIVERS[0]}
[ -e /sys/module/nouveau/parameters/modeset ] && NOUVEAU_MODESET=`cat /sys/module/nouveau/parameters/modeset`
[ "$NOUVEAU_MODESET" = "-1" ] && NOUVEAU_MODESET=1
[ -e /sys/module/radeon/parameters/modeset ] && RADEON_MODESET=`cat /sys/module/radeon/parameters/modeset`
if [ "$VIDEODRIVER" = "nvidia" -a "$NOUVEAU_MODESET" = "1" ]; then