bug fixes

This commit is contained in:
inxi-svn 2011-06-06 04:42:18 +00:00
parent 5eca5a85a9
commit 8e4e7eac60

6
inxi
View file

@ -3960,7 +3960,7 @@ get_network_advanced_data()
fi fi
fi fi
log_function_data "PRE: working_path: $working_path\nworking_uevent_path: $working_uevent_path" log_function_data "PRE: working_path: $working_path\nworking_uevent_path: $working_uevent_path"
if [[ -e $working_uevent_path/net ]];then if [[ -n $usb_data && -e $working_uevent_path/net ]];then
if_path=$( ls $working_uevent_path/net 2>/dev/null ) if_path=$( ls $working_uevent_path/net 2>/dev/null )
if_id=$if_path if_id=$if_path
working_path=$working_uevent_path/net/$if_path working_path=$working_uevent_path/net/$if_path
@ -3972,9 +3972,9 @@ get_network_advanced_data()
working_path=$working_path/net/$if_path working_path=$working_path/net/$if_path
# 2.6.32 debian lenny kernel shows not: /net/eth0 but /net:eth0 # 2.6.32 debian lenny kernel shows not: /net/eth0 but /net:eth0
else else
if_path=$( ls $working_uevent_path 2>/dev/null | grep 'net:' ) if_path=$( ls $working_path 2>/dev/null | grep 'net:' )
if_id=$( cut -d ':' -f 2 <<< "$if_path" ) if_id=$( cut -d ':' -f 2 <<< "$if_path" )
working_path=$working_uevent_path/$if_path working_path=$working_path/$if_path
fi fi
log_function_data "POST: working_path: $working_path\nif_path: $if_path - if_id: $if_id" log_function_data "POST: working_path: $working_path\nif_path: $if_path - if_id: $if_id"