mirror of
https://github.com/smxi/inxi.git
synced 2024-11-17 00:31:19 +00:00
bug fix in multiple gpu print out, bug fix in multiple audio card driver print out
This commit is contained in:
parent
15430ba3ab
commit
d2411ce973
10
inxi
10
inxi
|
@ -1,8 +1,8 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
########################################################################
|
########################################################################
|
||||||
#### Script Name: inxi
|
#### Script Name: inxi
|
||||||
#### version: 1.4.18
|
#### version: 1.4.19
|
||||||
#### Date: September 29 2010
|
#### Date: October 7 2010
|
||||||
########################################################################
|
########################################################################
|
||||||
#### SPECIAL THANKS
|
#### SPECIAL THANKS
|
||||||
########################################################################
|
########################################################################
|
||||||
|
@ -4353,7 +4353,7 @@ print_audio_data()
|
||||||
fi
|
fi
|
||||||
# we're testing for the presence of the 2nd array item here, which is the driver name
|
# we're testing for the presence of the 2nd array item here, which is the driver name
|
||||||
if [[ -n ${a_audio_working[1]} ]];then
|
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
|
fi
|
||||||
if [[ -n ${a_audio_working[2]} && $B_EXTRA_DATA == 'true' ]];then
|
if [[ -n ${a_audio_working[2]} && $B_EXTRA_DATA == 'true' ]];then
|
||||||
if [[ $( wc -w <<< ${a_audio_working[2]} ) -gt 1 ]];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
|
if [[ ${#A_GFX_CARD_DATA[@]} -gt 1 ]];then
|
||||||
i=1
|
i=1
|
||||||
while [[ -n ${A_GFX_CARD_DATA[i]} && $i -le 3 ]]
|
while [[ -n ${A_GFX_CARD_DATA[i]} && $i -le 4 ]]
|
||||||
do
|
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++))
|
((i++))
|
||||||
done
|
done
|
||||||
card_one='Card-1'
|
card_one='Card-1'
|
||||||
|
|
Loading…
Reference in a new issue