hot bug fix, removed debuggers

This commit is contained in:
inxi-svn 2011-06-23 02:51:16 +00:00
parent c308dcc339
commit d089bf0211

6
inxi
View file

@ -4319,8 +4319,8 @@ get_network_advanced_data()
# note although this may exist technically don't use it, it's a virtual path
# and causes weird cat errors when there's a missing file as well as a virtual path
# /sys/bus/pci/devices/0000:02:02.0/net/eth1
# working_path="/sys/bus/pci/devices/0000:${a_network_adv_working[4]}"
working_path=$( ls /sys/devices/pci*/*/0000:${a_network_adv_working[4]}/net/*/uevent )
working_path="/sys/bus/pci/devices/0000:${a_network_adv_working[4]}"
# working_path=$( ls /sys/devices/pci*/*/0000:${a_network_adv_working[4]}/net/*/uevent )
else
# slice off the usb- part
usb_data=$( cut -d '-' -f 2-4 <<< ${a_network_adv_working[4]} )
@ -4384,7 +4384,7 @@ get_network_advanced_data()
if [[ -n $if_path ]];then
if [[ -f $working_path/speed ]];then
speed=$( cat $working_path/speed )
speed=$( cat $working_path/speed ) gg
fi
if [[ -f $working_path/duplex ]];then
duplex=$( cat $working_path/duplex )