mirror of
https://github.com/smxi/inxi.git
synced 2024-11-16 16:21:39 +00:00
fixed dual video card output
This commit is contained in:
parent
203501f56a
commit
dcd2d72813
17
inxi
17
inxi
|
@ -1,7 +1,7 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
########################################################################
|
########################################################################
|
||||||
#### Script Name: inxi
|
#### Script Name: inxi
|
||||||
#### version: 0.1.28
|
#### version: 0.1.29
|
||||||
#### Date: October 28 2008
|
#### Date: October 28 2008
|
||||||
########################################################################
|
########################################################################
|
||||||
#### inxi is a fork of infobash, the original bash sys info script by locsmif
|
#### inxi is a fork of infobash, the original bash sys info script by locsmif
|
||||||
|
@ -1191,6 +1191,14 @@ print_it_out()
|
||||||
fi
|
fi
|
||||||
print_screen_output "$long_gfx"
|
print_screen_output "$long_gfx"
|
||||||
|
|
||||||
|
i=1
|
||||||
|
while [[ -n ${GFX[i]} && $i -le 3 ]]
|
||||||
|
do
|
||||||
|
long_gfx=$( printf "${C1}%-${INDENT}s${C2} %s" " " "${C1}Card $(($1+1))${C2} ${GFX[i]}" )
|
||||||
|
print_screen_output "$long_gfx"
|
||||||
|
(( i++ ))
|
||||||
|
done
|
||||||
|
|
||||||
if ((X)) && ! ((MESA))
|
if ((X)) && ! ((MESA))
|
||||||
then
|
then
|
||||||
#long_gfx="$( echo -ne "${INDENT}${C1}GLX Renderer${C2} ${GLXR}${CN} | ${C1}GLX Version${C2} ${GLXV}${CN}" )"
|
#long_gfx="$( echo -ne "${INDENT}${C1}GLX Renderer${C2} ${GLXR}${CN} | ${C1}GLX Version${C2} ${GLXV}${CN}" )"
|
||||||
|
@ -1202,13 +1210,6 @@ print_it_out()
|
||||||
fi
|
fi
|
||||||
|
|
||||||
print_screen_output "$long_gfx"
|
print_screen_output "$long_gfx"
|
||||||
i=1
|
|
||||||
while [[ -n ${GFX[i]} && $i -le 3 ]]
|
|
||||||
do
|
|
||||||
long_gfx=$( printf "${C1}%-${INDENT}s${C2} %s" " " "${GFX[i]}" )
|
|
||||||
print_screen_output "$long_gfx"
|
|
||||||
(( i++ ))
|
|
||||||
done
|
|
||||||
|
|
||||||
if [ "$VERBOSITY_LEVEL" -ge 2 ]
|
if [ "$VERBOSITY_LEVEL" -ge 2 ]
|
||||||
then
|
then
|
||||||
|
|
Loading…
Reference in a new issue