fine tune failed module load for gfx driver

This commit is contained in:
inxi-svn 2011-07-19 23:53:19 +00:00
parent cda79a63fd
commit d56790b717

6
inxi
View file

@ -3,7 +3,7 @@
#### Script Name: inxi #### Script Name: inxi
#### version: 1.7.15 #### version: 1.7.15
#### Date: July 6 2011 #### Date: July 6 2011
#### Patch Number: 02 #### Patch Number: 03
######################################################################## ########################################################################
#### SPECIAL THANKS #### SPECIAL THANKS
######################################################################## ########################################################################
@ -3705,8 +3705,8 @@ get_graphics_driver()
aDrivers[driver]="unloaded" aDrivers[driver]="unloaded"
} }
} }
/Failed.*('"$driver_list"')_drv.so$/ { /Failed.*('"$driver_list"')_drv.so$/ || /Failed to load module \"('"$driver_list"')\"/ {
driver=gensub(/(.*)Failed.*('"$driver_list"')_drv.so$/, "\\2", 1, $0 ) driver=gensub(/(.*)Failed.*('"$driver_list"')_drv.so$|(.*)Failed to load module \"('"$driver_list"')\".*/, "\\2", 1, $0 )
# we need to make sure that the driver has already been truly loaded, not just discussed # we need to make sure that the driver has already been truly loaded, not just discussed
if ( driver in aDrivers ) { if ( driver in aDrivers ) {
aDrivers[driver]="failed" aDrivers[driver]="failed"