From f994e2ebb7f7d9babbb85bd4cd9c3d70306209bf Mon Sep 17 00:00:00 2001 From: inxi-svn Date: Wed, 18 Feb 2009 05:39:39 +0000 Subject: [PATCH] next test --- inxi | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/inxi b/inxi index 803f5ac..68b0626 100755 --- a/inxi +++ b/inxi @@ -1,7 +1,7 @@ #!/bin/bash ######################################################################## #### Script Name: inxi -#### version: 1.0.3-b1-t1 +#### version: 1.0.3-b1-t2 #### Date: 17 February 2009 ######################################################################## #### SPECIAL THANKS @@ -1387,12 +1387,19 @@ get_audio_data() # also, find the contents of usbid in lsusb and print everything after the 7th word on the corresponding line # finally, strip out commas as they will change the driver :) # lsusb is not contained in some users paths, hardcode it! - A_AUDIO_DATA=( "${A_AUDIO_DATA[@]}" \ - "$( lsusb -v 2>/dev/null |\ - grep $( cat $usb_proc_file/usbid ) |\ - gawk '{ for( i=7; i/dev/null | grep "$usb_id" ) + usb_data=$( gawk '{ + gsub(/,/, " ", $0) + for( i=7; i/dev/null |\ +# grep $( cat $usb_proc_file/usbid ) |\ +# gawk '{ gsub(/,/, " ", $0);for( i=7; i