You are not logged in.

#1 2010-01-30 13:19:11

willxtreme
Member
Registered: 2010-01-07
Posts: 150
Website

[SOLVED] NVIDIA question

In rc.local, my code to config the video driver at launch of the LIVE CD is:

Xorg -configure && cp /xorg.conf.new /etc/X11/xorg.conf

Let's say I included NVIDIA proprietary driver, my question is what code would I have to put to recognize if there is a nvidia card installed in the computer.

So if there's an NVIDIA card, it would do
nvidia-xconfig

and if not, it would do
Xorg -configure && cp /xorg.conf.new /etc/X11/xorg.conf

Thanks in advance for helping big_smile

Last edited by willxtreme (2010-01-30 22:16:03)

Offline

#2 2010-01-30 14:01:09

sHyLoCk
Member
From: /dev/null
Registered: 2009-06-19
Posts: 1,197

Re: [SOLVED] NVIDIA question

if (lspci | grep nVidia &> /dev/null); then
.........
else
.........
fi

~ Regards,
sHy
ArchBang: Yet another Distro for Allan to break.
Blog | GIT | Forum (。◕‿◕。)

Offline

#3 2010-01-30 22:29:21

willxtreme
Member
Registered: 2010-01-07
Posts: 150
Website

Re: [SOLVED] NVIDIA question

Wonderful thank you sHyLoCk!

Offline

Board footer

Powered by FluxBB