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