From 3d83e9ff76f490c2d3fd85c61076d3bfa8c57258 Mon Sep 17 00:00:00 2001 From: inxi-svn Date: Wed, 20 Jul 2011 00:37:52 +0000 Subject: [PATCH] (version jump, feature fix) fixed gfx driver failed state --- inxi | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/inxi b/inxi index db4a156..c4e1089 100755 --- a/inxi +++ b/inxi @@ -1,9 +1,9 @@ #!/bin/bash ######################################################################## #### Script Name: inxi -#### version: 1.7.15 +#### version: 1.7.16 #### Date: July 6 2011 -#### Patch Number: 03 +#### Patch Number: 00 ######################################################################## #### SPECIAL THANKS ######################################################################## @@ -3706,9 +3706,12 @@ get_graphics_driver() } } /Failed.*('"$driver_list"')_drv.so|Failed.*\"('"$driver_list"')\"/ { - driver=gensub(/(.*)Failed.*('"$driver_list"')_drv.so|(.*)Failed.*\"('"$driver_list"')\".*/, "\\2", 1, $0 ) + driver=gensub(/(.*)Failed.*('"$driver_list"')_drv.so/, "\\2", 1, $0 ) + if ( driver == $0 ) { + driver=gensub(/(.*)Failed.*\"('"$driver_list"')\".*|fred/, "\\2", 1, $0 ) + } # we need to make sure that the driver has already been truly loaded, not just discussed - if ( driver in aDrivers ) { + if ( driver != $0 && driver in aDrivers ) { aDrivers[driver]="failed" } }