mirror of
https://github.com/smxi/inxi.git
synced 2024-11-16 16:21:39 +00:00
bug fix
This commit is contained in:
parent
80936e4e84
commit
3aa7c6ee28
4
inxi
4
inxi
|
@ -3045,12 +3045,14 @@ get_network_advanced_data()
|
|||
if [[ -e $working_path/net ]];then
|
||||
card_port=$( ls $working_path/net 2>/dev/null )
|
||||
eth_id=$card_port
|
||||
working_path=$working_path/net/$card_port
|
||||
# 2.6.32 debian lenny kernel shows not: /net/eth0 but /net:eth0
|
||||
else
|
||||
card_port=$( ls $working_path | grep 'net:' )
|
||||
eth_id=$( cut -d ':' -f 2 <<< "$data1" )
|
||||
working_path=$working_path/$card_port
|
||||
fi
|
||||
working_path=$working_path/net/$card_port
|
||||
|
||||
if [[ -n $card_port ]];then
|
||||
if [[ -f $working_path/speed ]];then
|
||||
speed=$( cat $working_path/speed )
|
||||
|
|
Loading…
Reference in a new issue