xorg: fix when nouveau/modeset is returning -1 instead of 1 (treat as 1)
This commit is contained in:
parent
61f21f23ee
commit
652a22aa91
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user