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
19
inxi
19
inxi
|
@ -1,7 +1,7 @@
|
|||
#!/bin/bash
|
||||
########################################################################
|
||||
#### Script Name: inxi
|
||||
#### version: 0.1.28
|
||||
#### version: 0.1.29
|
||||
#### Date: October 28 2008
|
||||
########################################################################
|
||||
#### inxi is a fork of infobash, the original bash sys info script by locsmif
|
||||
|
@ -1191,6 +1191,14 @@ print_it_out()
|
|||
fi
|
||||
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))
|
||||
then
|
||||
#long_gfx="$( echo -ne "${INDENT}${C1}GLX Renderer${C2} ${GLXR}${CN} | ${C1}GLX Version${C2} ${GLXV}${CN}" )"
|
||||
|
@ -1202,14 +1210,7 @@ print_it_out()
|
|||
fi
|
||||
|
||||
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 ]
|
||||
then
|
||||
print_networking_data
|
||||
|
|
Loading…
Reference in a new issue