mirror of
https://github.com/smxi/inxi.git
synced 2024-11-17 08:35:25 +00:00
(Change Version)
fixed another small bug that made the print for busid use wrong data, forgot to clean , from original array data.
This commit is contained in:
parent
8ff14cda78
commit
c0d50a4a26
4
inxi
4
inxi
|
@ -1,7 +1,7 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
########################################################################
|
########################################################################
|
||||||
#### Script Name: inxi
|
#### Script Name: inxi
|
||||||
#### version: 1.3.10
|
#### version: 1.3.11
|
||||||
#### Date: February 5 2010
|
#### Date: February 5 2010
|
||||||
########################################################################
|
########################################################################
|
||||||
#### SPECIAL THANKS
|
#### SPECIAL THANKS
|
||||||
|
@ -1706,6 +1706,7 @@ get_audio_data()
|
||||||
|
|
||||||
# loop until you get to the end of the data block
|
# loop until you get to the end of the data block
|
||||||
while (getline && !/^$/) {
|
while (getline && !/^$/) {
|
||||||
|
gsub( /,/, "", $0 )
|
||||||
if (/driver in use/) {
|
if (/driver in use/) {
|
||||||
drivers[audioCard] = drivers[audioCard] gensub( /(.*): (.*)/ ,"\\2", "g" ,$0 ) ""
|
drivers[audioCard] = drivers[audioCard] gensub( /(.*): (.*)/ ,"\\2", "g" ,$0 ) ""
|
||||||
}
|
}
|
||||||
|
@ -2820,6 +2821,7 @@ get_networking_data()
|
||||||
# I do not understand why incrementing a string index makes sense?
|
# I do not understand why incrementing a string index makes sense?
|
||||||
eth[nic]++
|
eth[nic]++
|
||||||
while ( getline && !/^$/ ) {
|
while ( getline && !/^$/ ) {
|
||||||
|
gsub(/,/, "", $0)
|
||||||
if ( /I\/O/ ) {
|
if ( /I\/O/ ) {
|
||||||
ports[nic] = ports[nic] $4 " "
|
ports[nic] = ports[nic] $4 " "
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue