From 3aa7c6ee2820d82932f0d83269b729a109834421 Mon Sep 17 00:00:00 2001 From: inxi-svn Date: Mon, 25 Apr 2011 05:26:08 +0000 Subject: [PATCH] bug fix --- inxi | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/inxi b/inxi index b61a05d..0b27bdf 100755 --- a/inxi +++ b/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 )