bug fixes for module load/unload/fail

This commit is contained in:
inxi-svn 2011-05-25 00:50:53 +00:00
parent 9272811889
commit 436badf418

4
inxi
View file

@ -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'