mirror of
https://github.com/smxi/inxi.git
synced 2024-11-16 16:21:39 +00:00
(change version)
Removed 'driver ' string and changed to gawk for smoother handling and consistency
This commit is contained in:
parent
6cf526e231
commit
3ea5671668
10
inxi
10
inxi
|
@ -1,7 +1,7 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
########################################################################
|
########################################################################
|
||||||
#### Script Name: inxi
|
#### Script Name: inxi
|
||||||
#### version: 0.5.26
|
#### version: 0.5.27
|
||||||
#### Date: November 13 2008
|
#### Date: November 13 2008
|
||||||
########################################################################
|
########################################################################
|
||||||
#### inxi is a fork of infobash 3.02, the original bash sys info script by locsmif
|
#### 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
|
# now we'll add in the alsa data if the file exists
|
||||||
alsa_index=${#A_AUDIO_DATA[@]}
|
alsa_index=${#A_AUDIO_DATA[@]}
|
||||||
if [[ -e /proc/asound/version ]];then
|
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
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue