branch one, cleanup

This commit is contained in:
inxi-svn 2014-08-07 21:58:34 +00:00
parent 039be17c4d
commit 5ae57ca4cc

18
inxi
View file

@ -6357,13 +6357,13 @@ get_networking_data()
while ( getline && !/^$/ ) {
gsub(/,/, "", $0)
if ( /^[[:space:]]*I\/O/ ) {
ports[counter] = ports[counter] $4 " "
aPorts[counter] = aPorts[counter] $4 " "
}
if ( /driver in use/ ) {
drivers[counter] = drivers[counter] gensub( /(.*): (.*)/ ,"\\2" ,"g" ,$0 ) ""
aDrivers[counter] = aDrivers[counter] gensub( /(.*): (.*)/ ,"\\2" ,"g" ,$0 ) ""
}
else if ( /kernel modules/ ) {
modules[counter] = modules[counter] gensub( /(.*): (.*)/ ,"\\2" ,"g" ,$0 ) ""
aModules[counter] = aModules[counter] gensub( /(.*): (.*)/ ,"\\2" ,"g" ,$0 ) ""
}
}
counter++
@ -6385,14 +6385,14 @@ get_networking_data()
# a[j] = i
# }
## note: this loses the plural ports case, is it needed anyway?
if ( ports[i] != "" ) {
usePorts = ports[i]
if ( aPorts[i] != "" ) {
usePorts = aPorts[i]
}
if ( drivers[i] != "" ) {
useDrivers = drivers[i]
if ( aDrivers[i] != "" ) {
useDrivers = aDrivers[i]
}
if ( modules[i] != "" ) {
useModules = modules[i]
if ( aModules[i] != "" ) {
useModules = aModules[i]
}
if ( aNic[i] != "" ) {
useNic=aNic[i]