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 97a897b29e
commit 9f585a34c9

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