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