This commit is contained in:
inxi-svn 2011-06-23 01:05:18 +00:00
parent 4716d76772
commit 3de20fce82

6
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: 05-debug #### Patch Number: 06-debug
######################################################################## ########################################################################
#### SPECIAL THANKS #### SPECIAL THANKS
######################################################################## ########################################################################
@ -2713,6 +2713,7 @@ get_audio_usb_data()
local temp_array='' local temp_array=''
IFS=$'\n' IFS=$'\n'
echo "get usb path: $( date +%H:%M:%S )"
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 -v 2>/dev/null )
@ -2720,6 +2721,7 @@ get_audio_usb_data()
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
# for every sound card symlink in /proc/asound - display information about it # for every sound card symlink in /proc/asound - display information about it
echo "start loop: $( date +%H:%M:%S )"
time for usb_proc_file in /proc/asound/* time for usb_proc_file in /proc/asound/*
do do
# If the file is a symlink, and contains an important usb exclusive file: continue # If the file is a symlink, and contains an important usb exclusive file: continue
@ -2730,6 +2732,7 @@ get_audio_usb_data()
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=$( # usb_data=$(
echo "pre gawk when found: $( date +%H:%M:%S )"
echo $usb_data echo $usb_data
time gawk ' time gawk '
BEGIN { BEGIN {
@ -2767,6 +2770,7 @@ get_audio_usb_data()
eval $LOGFE eval $LOGFE
} }
echo "start: $( date +%H:%M:%S )"
time get_audio_usb_data time get_audio_usb_data
get_audio_alsa_data() get_audio_alsa_data()
{ {