mirror of
https://github.com/smxi/inxi.git
synced 2024-11-17 00:31:19 +00:00
hot bug fix, removed debuggers
This commit is contained in:
parent
c308dcc339
commit
d089bf0211
6
inxi
6
inxi
|
@ -4319,8 +4319,8 @@ get_network_advanced_data()
|
||||||
# note although this may exist technically don't use it, it's a virtual path
|
# 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
|
# 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
|
# /sys/bus/pci/devices/0000:02:02.0/net/eth1
|
||||||
# working_path="/sys/bus/pci/devices/0000:${a_network_adv_working[4]}"
|
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=$( ls /sys/devices/pci*/*/0000:${a_network_adv_working[4]}/net/*/uevent )
|
||||||
else
|
else
|
||||||
# slice off the usb- part
|
# slice off the usb- part
|
||||||
usb_data=$( cut -d '-' -f 2-4 <<< ${a_network_adv_working[4]} )
|
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 [[ -n $if_path ]];then
|
||||||
if [[ -f $working_path/speed ]];then
|
if [[ -f $working_path/speed ]];then
|
||||||
speed=$( cat $working_path/speed )
|
speed=$( cat $working_path/speed ) gg
|
||||||
fi
|
fi
|
||||||
if [[ -f $working_path/duplex ]];then
|
if [[ -f $working_path/duplex ]];then
|
||||||
duplex=$( cat $working_path/duplex )
|
duplex=$( cat $working_path/duplex )
|
||||||
|
|
Loading…
Reference in a new issue