branch one cleanup

This commit is contained in:
inxi-svn 2014-08-07 20:25:02 +00:00
parent c114aff914
commit 36e28704ab

12
inxi
View file

@ -6543,8 +6543,16 @@ get_network_advanced_data()
#if_data=$(echo $if_data) #if_data=$(echo $if_data)
for if_item in $if_data for if_item in $if_data
do do
chip_id=
duplex=''
full_path=''
if_id=''
mac_id=''
oper_state=''
speed=''
# strip out trailing spaces # strip out trailing spaces
if_item=${if_item%% } if_item=${if_item%% }
#echo wp1: $working_path #echo wp1: $working_path
if [[ $b_path_made == 'false' ]];then if [[ $b_path_made == 'false' ]];then
full_path=$working_path/net/$if_item full_path=$working_path/net/$if_item
@ -6555,10 +6563,6 @@ get_network_advanced_data()
#echo fp: $full_path #echo fp: $full_path
#echo id: $if_id #echo id: $if_id
# echo "$if_data ii: $if_item $array_counter i: $i" # echo "$if_data ii: $if_item $array_counter i: $i"
speed=''
duplex=''
mac_id=''
oper_state=''
if [[ -r $full_path/speed ]];then if [[ -r $full_path/speed ]];then
speed=$( cat $full_path/speed 2>/dev/null ) speed=$( cat $full_path/speed 2>/dev/null )
fi fi