mirror of
https://github.com/smxi/inxi.git
synced 2025-01-19 00:47:47 +00:00
branch one, cleanup
This commit is contained in:
parent
039be17c4d
commit
5ae57ca4cc
18
inxi
18
inxi
|
@ -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]
|
||||
|
|
Loading…
Reference in a new issue