(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:
inxi-svn 2010-02-05 23:04:02 +00:00
parent 8ff14cda78
commit c0d50a4a26

4
inxi
View file

@ -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 " "
} }