mirror of
https://github.com/smxi/inxi.git
synced 2024-11-17 00:31:19 +00:00
bug fixes for module load/unload/fail
This commit is contained in:
parent
9272811889
commit
436badf418
4
inxi
4
inxi
|
@ -3225,10 +3225,10 @@ get_graphics_driver()
|
||||||
for driver in $driver_list
|
for driver in $driver_list
|
||||||
do
|
do
|
||||||
if [[ -n $( grep -s "[[:space:]]Loading.*${driver}_drv.so" <<< "$xorg_log_data" ) ]];then
|
if [[ -n $( grep -s "[[:space:]]Loading.*${driver}_drv.so" <<< "$xorg_log_data" ) ]];then
|
||||||
if [[ -z $( grep -si "[[:space:]]Unloading.*${driver}_drv.so" <<< "$xorg_log_data" ) ]];then
|
if [[ -z $( grep -si "[[:space:]]Unload.*${driver}" <<< "$xorg_log_data" ) ]];then
|
||||||
status='loaded'
|
status='loaded'
|
||||||
else
|
else
|
||||||
if [[ -n $( grep -si "\(EE\)[[:space:]]Failed[[:space:]]to[[:space:]]load[[:space:]]module[[:space:]]\"${driver}\"" <<< "$xorg_log_data" ) ]];then
|
if [[ -n $( grep -si "Failed[[:space:]]to[[:space:]]load[[:space:]]module.*${driver}_drv.so" <<< "$xorg_log_data" ) ]];then
|
||||||
status='failed'
|
status='failed'
|
||||||
else
|
else
|
||||||
status='unloaded'
|
status='unloaded'
|
||||||
|
|
Loading…
Reference in a new issue