From 5ae57ca4ccbb429ed52c915b63a37ab2e131e379 Mon Sep 17 00:00:00 2001 From: inxi-svn Date: Thu, 7 Aug 2014 21:58:34 +0000 Subject: [PATCH] branch one, cleanup --- inxi | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/inxi b/inxi index b28c3f1..874b417 100755 --- a/inxi +++ b/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]