bug tester

This commit is contained in:
inxi-svn 2011-06-23 00:39:55 +00:00
parent 2f44c96e23
commit 1b8d5894a7

7
inxi
View file

@ -2727,7 +2727,9 @@ get_audio_usb_data()
usb_id=$( cat $usb_proc_file/usbid ) usb_id=$( cat $usb_proc_file/usbid )
usb_data=$( grep "$usb_id" <<< "$lsusb_data" ) usb_data=$( grep "$usb_id" <<< "$lsusb_data" )
if [[ -n $usb_data && -n $usb_id ]];then if [[ -n $usb_data && -n $usb_id ]];then
usb_data=$( time gawk ' # usb_data=$(
echo $usb_data
time gawk '
BEGIN { BEGIN {
IGNORECASE=1 IGNORECASE=1
string="" string=""
@ -2744,7 +2746,8 @@ get_audio_usb_data()
if ( $6 != "" ){ if ( $6 != "" ){
print string ",snd-usb-audio,,," $6 print string ",snd-usb-audio,,," $6
} }
}' <<< "$usb_data" ) }' <<< "$usb_data"
# )
fi fi
# this method is interesting, it shouldn't work but it does # this method is interesting, it shouldn't work but it does
#A_AUDIO_DATA=( "${A_AUDIO_DATA[@]}" "$usb_data,snd-usb-audio,," ) #A_AUDIO_DATA=( "${A_AUDIO_DATA[@]}" "$usb_data,snd-usb-audio,," )