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