This commit is contained in:
inxi-svn 2011-04-25 05:26:08 +00:00
parent 80936e4e84
commit 3aa7c6ee28

4
inxi
View file

@ -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 )