removed -v from lsusb audio, it's not needed and may be triggering kernel issues for some users.

This commit is contained in:
inxi-svn 2011-06-23 02:42:48 +00:00
parent bdf795a8fc
commit c308dcc339

10
inxi
View file

@ -3,7 +3,7 @@
#### Script Name: inxi
#### version: 1.7.8
#### Date: June 22 2011
#### Patch Number: 01
#### Patch Number: 02
########################################################################
#### SPECIAL THANKS
########################################################################
@ -2715,7 +2715,7 @@ get_audio_usb_data()
IFS=$'\n'
lsusb_path=$( type -p lsusb )
if [[ -n $lsusb_path ]];then
lsusb_data=$( $lsusb_path -v 2>/dev/null )
lsusb_data=$( $lsusb_path 2>/dev/null )
fi
log_function_data 'raw' "usb_data:\n$lsusb_data"
if [[ -n $lsusb_data ]];then
@ -4316,7 +4316,11 @@ get_network_advanced_data()
oper_state=''
usb_data=''
if [[ -z $( grep '^usb-' <<< ${a_network_adv_working[4]} ) ]];then
working_path="/sys/bus/pci/devices/0000:${a_network_adv_working[4]}"
# 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 )
else
# slice off the usb- part
usb_data=$( cut -d '-' -f 2-4 <<< ${a_network_adv_working[4]} )