trying differently

This commit is contained in:
inxi-svn 2009-02-18 05:59:21 +00:00
parent be45fa2909
commit d41372da60

8
inxi
View file

@ -1,7 +1,7 @@
#!/bin/bash
########################################################################
#### Script Name: inxi
#### version: 1.0.3-b1-t2
#### version: 1.0.3-b1-t3
#### Date: 17 February 2009
########################################################################
#### SPECIAL THANKS
@ -1399,7 +1399,11 @@ get_audio_data()
# usb_data=$( lsusb -v 2>/dev/null |\
# grep $( cat $usb_proc_file/usbid ) |\
# gawk '{ gsub(/,/, " ", $0);for( i=7; i<NF; i++) { printf($i " ") } printf "\n" }' )
A_AUDIO_DATA=( "${A_AUDIO_DATA[@]}" "$usb_data,snd-usb-audio,," )
#A_AUDIO_DATA=( "${A_AUDIO_DATA[@]}" "$usb_data,snd-usb-audio,," )
if [[ -n "$usb_data" ]];then
array_count=${#A_AUDIO_DATA[@]}
A_AUDIO_DATA[$array_count]="$usb_data,snd-usb-audio,,"
fi
fi
done
IFS="$ORIGINAL_IFS"