From 436badf418cafb17ebce5d2b0470b509f0845f4f Mon Sep 17 00:00:00 2001 From: inxi-svn Date: Wed, 25 May 2011 00:50:53 +0000 Subject: [PATCH] bug fixes for module load/unload/fail --- inxi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/inxi b/inxi index 3f9a0b5..a087111 100755 --- a/inxi +++ b/inxi @@ -3225,10 +3225,10 @@ get_graphics_driver() for driver in $driver_list do 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' 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' else status='unloaded'