lspci output : 01:00.0 VGA compatible controller: nVidia Corporation GeForce Go 7400 (rev a1) the probleme is in this awk command in /sbin/livecd-functions.sh : 92: NVIDIA_CARD=$(echo ${NVIDIA} | awk 'BEGIN {RS=" "} /(NV|nv|G|C)[0-9]+/ {print $1}' | cut -d. -f1 | sed 's/ //' | sed 's:[^0-9]::g') it returns nothing because their is a space between Go and 7400, and because Go is not in (NV|nv|G|C)... Reproducible: Always Steps to Reproduce: 1.having the same lspci output as me 2.having the livecd-tools installed (i'm working on a livecd) 3./etc/init.d/x-setup start Expected Results: x-setup should have set up opengl in /etc/env.d/03opengl (eselect) for this nvidia card This is my first submission, say it if it isn't the way i should do it... Sorry for my so poor english, im' french :)
The code is correct. The problem is that the lspci/pci.ids information is incorrect. All cards should be listed in the format of: nVidia Corporation G73 [GeForce Go 7400] Company, chip name, [Marketing name] This is according to upstream's wishes. Because of this, I consider this a bug in the upstream data, not the parsing we do on the data. http://pciids.sourceforge.net/ The best solution is to submit a fixed listing for your card upstream.