Gentoo Archives: gentoo-catalyst

From: Nicolas Raspail <nicolas@×××××××××××××××.net>
To: gentoo-catalyst@l.g.o
Subject: [gentoo-catalyst] livecd-functions.sh and nvidia
Date: Mon, 12 Dec 2005 17:44:44
Message-Id: 1134409446.3389.13.camel@deus.whisperingvault.net
1 Hi,
2
3 I think the pattern to detect an nvidia card is wrong in
4 livecd-functions.sh :
5
6 NVIDIA_CARD=$(echo ${NVIDIA} | awk 'BEGIN {RS=" "} /NV[0-9]+/ {print
7 $1}' | cut -d. -f1 | sed 's/ //' | sed 's:[^0-9]::g'
8
9 Here is the output of lspci on my system :
10
11 0000:01:00.0 VGA compatible controller: nVidia Corporation nv40 [GeForce
12 6800 Ultra] (rev a1)
13
14 The regexp try to math a pattern like NV followed by numbers, but my
15 card appears as nv40, lowercase, and it isn't detected.
16
17 If I modify the line like this
18
19 NVIDIA_CARD=$(echo ${NVIDIA} | awk 'BEGIN {RS="
20 ";IGNORECASE="1"} /NV[0-9]+/ {print $1}' | cut -d. -f1 | sed 's/ //' |
21 sed 's:[^0-9]::g'
22
23 the output is 40, which seems to be ok. As I'm not an awk user, perhaps,
24 my little modification is ugly, and someone has a better one ?
25
26 To test my solution, I will write an fsscript that modify the
27 livecd-functions.sh, rebuild my livecd and test the new iso.
28
29 Nicolas
30
31 --
32 gentoo-catalyst@g.o mailing list

Replies

Subject Author
Re: [gentoo-catalyst] livecd-functions.sh and nvidia Chris Gianelloni <wolf31o2@g.o>