From 3ea56716684ded15e979bf62bbe414ca0f92b90d Mon Sep 17 00:00:00 2001 From: inxi-svn Date: Fri, 14 Nov 2008 00:54:31 +0000 Subject: [PATCH] (change version) Removed 'driver ' string and changed to gawk for smoother handling and consistency --- inxi | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/inxi b/inxi index f6bd98c..470ec34 100755 --- a/inxi +++ b/inxi @@ -1,7 +1,7 @@ #!/bin/bash ######################################################################## #### Script Name: inxi -#### version: 0.5.26 +#### version: 0.5.27 #### Date: November 13 2008 ######################################################################## #### inxi is a fork of infobash 3.02, the original bash sys info script by locsmif @@ -1016,7 +1016,13 @@ get_audio_data() # now we'll add in the alsa data if the file exists alsa_index=${#A_AUDIO_DATA[@]} if [[ -e /proc/asound/version ]];then - A_AUDIO_DATA[$alsa_index]="$( cat /proc/asound/version ),alsa" + A_AUDIO_DATA[$alsa_index]=$( gawk '{ + { IGNORECASE=1 } + gsub( "Driver ","",$0 ) + if ( $0 != "" ){ + print $0 ",alsa" + } + }' /proc/asound/version ) fi }