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 )