Subversion Repositories livecd

Rev

Rev 134 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 134 Rev 136
Line 392... Line 392...
392
    /sbin/lspci | grep VGA | grep -i -q nvidia
392
    /sbin/lspci | grep VGA | grep -i -q nvidia
393
    if [ "$?" = "0" ]; then
393
    if [ "$?" = "0" ]; then
394
	# nvidia-x11-drv installed?
394
	# nvidia-x11-drv installed?
395
	which nvidia-xconfig >/dev/null 2>&1
395
	which nvidia-xconfig >/dev/null 2>&1
396
	if [ "$?" = "0" ]; then
396
	if [ "$?" = "0" ]; then
-
 
397
	    echo "Enable nvidia driver."
397
	    # set driver to nv in case it's only vesa
398
	    # set driver to nv in case it's only vesa
398
	    sed -i 's|"vesa"|"nv"|' /etc/X11/xorg.conf
399
	    sed -i 's|"vesa"|"nv"|' /etc/X11/xorg.conf
399
	    # configure for nvidia driver
400
	    # configure for nvidia driver
400
	    nvidia-xconfig
401
	    nvidia-xconfig >/dev/null 2>&1
-
 
402
            nvidia-config-display enable
401
	fi
403
	fi
402
    fi
404
    fi
403
fi
405
fi
404
 
406
 
405
### set special video driver options for Intel Mobile
407
### set special video driver options for Intel Mobile