From 36e28704ab5cce63110a35c55287a2595a6ba8e4 Mon Sep 17 00:00:00 2001 From: inxi-svn Date: Thu, 7 Aug 2014 20:25:02 +0000 Subject: [PATCH] branch one cleanup --- inxi | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/inxi b/inxi index f232b63..48fec80 100755 --- a/inxi +++ b/inxi @@ -6543,8 +6543,16 @@ get_network_advanced_data() #if_data=$(echo $if_data) for if_item in $if_data do + chip_id= + duplex='' + full_path='' + if_id='' + mac_id='' + oper_state='' + speed='' # strip out trailing spaces if_item=${if_item%% } + #echo wp1: $working_path if [[ $b_path_made == 'false' ]];then full_path=$working_path/net/$if_item @@ -6555,10 +6563,6 @@ get_network_advanced_data() #echo fp: $full_path #echo id: $if_id # echo "$if_data ii: $if_item $array_counter i: $i" - speed='' - duplex='' - mac_id='' - oper_state='' if [[ -r $full_path/speed ]];then speed=$( cat $full_path/speed 2>/dev/null ) fi