mirror of
https://github.com/smxi/inxi.git
synced 2025-01-19 00:47:47 +00:00
branch one cleanup
This commit is contained in:
parent
c114aff914
commit
36e28704ab
12
inxi
12
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
|
||||
|
|
Loading…
Reference in a new issue