(version jump, feature fix)

fixed gfx driver failed state
This commit is contained in:
inxi-svn 2011-07-20 00:37:52 +00:00
parent 7ddc8116f3
commit 3d83e9ff76

11
inxi
View file

@ -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"
}
}