(change version)

Removed 'driver ' string and changed to gawk for smoother handling and consistency
This commit is contained in:
inxi-svn 2008-11-14 00:54:31 +00:00
parent 6cf526e231
commit 3ea5671668

10
inxi
View file

@ -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
}