From c308dcc3391b7b8f4c607633476e53abadbb6167 Mon Sep 17 00:00:00 2001 From: inxi-svn Date: Thu, 23 Jun 2011 02:42:48 +0000 Subject: [PATCH] removed -v from lsusb audio, it's not needed and may be triggering kernel issues for some users. --- inxi | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/inxi b/inxi index af37114..642cf59 100755 --- a/inxi +++ b/inxi @@ -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]} )