mirror of
https://github.com/smxi/inxi.git
synced 2024-11-17 00:31:19 +00:00
(version jump, feature fix)
fixed gfx driver failed state
This commit is contained in:
parent
7ddc8116f3
commit
3d83e9ff76
11
inxi
11
inxi
|
@ -1,9 +1,9 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
########################################################################
|
########################################################################
|
||||||
#### Script Name: inxi
|
#### Script Name: inxi
|
||||||
#### version: 1.7.15
|
#### version: 1.7.16
|
||||||
#### Date: July 6 2011
|
#### Date: July 6 2011
|
||||||
#### Patch Number: 03
|
#### Patch Number: 00
|
||||||
########################################################################
|
########################################################################
|
||||||
#### SPECIAL THANKS
|
#### SPECIAL THANKS
|
||||||
########################################################################
|
########################################################################
|
||||||
|
@ -3706,9 +3706,12 @@ get_graphics_driver()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/Failed.*('"$driver_list"')_drv.so|Failed.*\"('"$driver_list"')\"/ {
|
/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
|
# 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"
|
aDrivers[driver]="failed"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue