diff --git a/inxi b/inxi index 91e515d..b3fd388 100755 --- a/inxi +++ b/inxi @@ -1,8 +1,8 @@ #!/bin/bash ######################################################################## #### Script Name: inxi -#### version: 1.5.8 -#### Date: May 27 2011 +#### version: 1.5.9 +#### Date: May 28 2011 ######################################################################## #### SPECIAL THANKS ######################################################################## @@ -2270,13 +2270,13 @@ get_audio_data() } # filtering out modems and usb devices like webcams, this might get a # usb audio card as well, this will take some trial and error - $0 !~ /modem/ || $0 !~ /usb/ { + $0 !~ /modem|usb|webcam/ { driver=gensub( /^(.+)( - )(.+)$/, "\\1", 1, $2 ) gsub(/^ +| +$/,"",driver) if ( driver != "" ){ print driver } - }' $FILE_ASOUND_DEVICE ) + }' $FILE_ASOUND_DEVICE ) log_function_data 'cat' "$FILE_ASOUND_DEVICE" fi @@ -3203,7 +3203,6 @@ get_graphics_driver() for driver in $driver_list do # note there appears to be different unload/failed syntax, so using simple conservative one - # I was not able to find a case where xorg.log shows unload and not fail if [[ -n $( grep -s "[[:space:]]Loading.*${driver}_drv.so" <<< "$xorg_log_data" ) ]];then if [[ -n $( grep -si "Failed.*${driver}_drv.so" <<< "$xorg_log_data" ) ]];then status='failed'