bug fix in multiple gpu print out, bug fix in multiple audio card driver print out

This commit is contained in:
inxi-svn 2010-10-08 05:37:08 +00:00
parent 15430ba3ab
commit d2411ce973

10
inxi
View file

@ -1,8 +1,8 @@
#!/bin/bash
########################################################################
#### Script Name: inxi
#### version: 1.4.18
#### Date: September 29 2010
#### version: 1.4.19
#### Date: October 7 2010
########################################################################
#### SPECIAL THANKS
########################################################################
@ -4353,7 +4353,7 @@ print_audio_data()
fi
# we're testing for the presence of the 2nd array item here, which is the driver name
if [[ -n ${a_audio_working[1]} ]];then
alsa_driver="${C1}driver${C2} ${a_audio_working[1]}"
alsa_driver=" ${C1}driver${C2} ${a_audio_working[1]}"
fi
if [[ -n ${a_audio_working[2]} && $B_EXTRA_DATA == 'true' ]];then
if [[ $( wc -w <<< ${a_audio_working[2]} ) -gt 1 ]];then
@ -4570,9 +4570,9 @@ print_gfx_data()
if [[ ${#A_GFX_CARD_DATA[@]} -gt 1 ]];then
i=1
while [[ -n ${A_GFX_CARD_DATA[i]} && $i -le 3 ]]
while [[ -n ${A_GFX_CARD_DATA[i]} && $i -le 4 ]]
do
gfx_data=" ${C1}Card-$(($i+1))${C2} ${A_GFX_CARD_DATA[i]}"
gfx_data="$gfx_data ${C1}Card-$(($i+1))${C2} ${A_GFX_CARD_DATA[i]}"
((i++))
done
card_one='Card-1'