mirror of
https://github.com/smxi/inxi.git
synced 2024-11-16 16:21:39 +00:00
new tarball, no new version. Removed a class from freebsd pciconf that gives a false network card id
This commit is contained in:
parent
01d10df7a5
commit
2372d3b5a1
2
inxi
2
inxi
|
@ -8095,7 +8095,7 @@ EOF"
|
||||||
sub(/:$/, "", pciId)
|
sub(/:$/, "", pciId)
|
||||||
itemData=$4
|
itemData=$4
|
||||||
chipId=gensub(/.*chip=([0-9a-f][0-9a-f][0-9a-f][0-9a-f])([0-9a-f][0-9a-f][0-9a-f][0-9a-f]).*/, "\\2:\\1", itemData )
|
chipId=gensub(/.*chip=([0-9a-f][0-9a-f][0-9a-f][0-9a-f])([0-9a-f][0-9a-f][0-9a-f][0-9a-f]).*/, "\\2:\\1", itemData )
|
||||||
if ( $2 ~ /class=020000|class=068000/ ) {
|
if ( $2 ~ /class=020000/ ) {
|
||||||
class="network"
|
class="network"
|
||||||
}
|
}
|
||||||
else if ( $2 == "class=030000" ) {
|
else if ( $2 == "class=030000" ) {
|
||||||
|
|
Loading…
Reference in a new issue