From 7fd903ca68bbe9f84ad7ad1674dee54a9f16f7c3 Mon Sep 17 00:00:00 2001 From: inxi-svn Date: Wed, 18 Feb 2009 06:45:49 +0000 Subject: [PATCH] a few cosmetic code tweaks to 1.0.3, no version change --- inxi | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/inxi b/inxi index dec773d..caed8c7 100755 --- a/inxi +++ b/inxi @@ -1399,14 +1399,13 @@ get_audio_data() # if lsusb exists, the file is a symlink, and contains an important usb exclusive file: continue if [[ -n $( which lsusb ) && -L $usb_proc_file && -e $usb_proc_file/usbid ]]; then # send error messages of lsusb to /dev/null as it will display a bunch if not a super user - # 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! + # 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 :) usb_id=$( cat $usb_proc_file/usbid ) usb_data=$( lsusb -v 2>/dev/null | grep "$usb_id" ) usb_data=$( gawk '{ gsub( /,/, " ", $0 ) - for( i=7; i