some more awk cleanup

This commit is contained in:
inxi-svn 2008-11-05 23:39:07 +00:00
parent b5bffea71f
commit 32a9957109

3
inxi
View file

@ -1194,7 +1194,8 @@ get_networking_data()
gsub(/davicom semiconductor/, "Davicom", nic) gsub(/davicom semiconductor/, "Davicom", nic)
gsub(/,/," ", nic) gsub(/,/," ", nic)
gsub(/'"$A_NORMAL_BANS"'/, "", nic) gsub(/'"$A_NORMAL_BANS"'/, "", nic)
gsub(/ [ ]+/," ", nic); gsub(/^ +| +$/,"", nic) gsub(/ [ ]+/," ", nic)
gsub(/^ +| +$/,"", nic)
# The doublequotes above are necessary because of the pipes in the variable. # The doublequotes above are necessary because of the pipes in the variable.
eth[nic]++ eth[nic]++
while (getline && !/^$/) { while (getline && !/^$/) {