Hello,
In the past when I was dealing with kernel-2.6.11.1, I was able to determine the video chip-set that a system was using by examining the contents of the /proc/pci file.
Now I am working with kernel-2.6.20.1. The file /proc/pci is not found (not created?).
I need to determine the video chip-set so that I can start X11 (with the appropriate xorg.conf file for the chip-set) when booting from a CD-ROM disk.
I am using busybox-1.01 which does not offer "lspci".
Any ideas as to what I can do to replace the following:
PHP Code:
# 501 hardware
if [ `cat /proc/pci | grep "Chips and Technologies" -c` = 1 ]
then
/usr/X11R6/bin/xinit /bin/UpdateUI $CDVERSION $PARAM -- /usr/X11R6/bin/X -config /etc/X11/chips/xorg.conf
exit
fi
# 503 hardware
if [ `cat /proc/pci | grep ATI -c` = 1 ]
then
/usr/X11R6/bin/xinit /bin/UpdateUI $CDVERSION $PARAM -- /usr/X11R6/bin/X -config /etc/X11/ati/xorg.conf
exit
fi
# 505 hardware
if [ `cat /proc/pci | grep 82852/855GM -c` = 3 ]
then
/usr/X11R6/bin/xinit /bin/UpdateUI $CDVERSION $PARAM -- /usr/X11R6/bin/X -config /etc/X11/intel/xorg.conf
exit
fi
...