From 3438103c7a468ea0be8eb7acad0f729f524a4387 Mon Sep 17 00:00:00 2001 From: inxi-svn Date: Tue, 24 Aug 2010 20:10:32 +0000 Subject: [PATCH] added in handling for when the vendor string for xorg is NOT xorg, but something else, like fedora --- inxi | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/inxi b/inxi index c8e1b25..fcfa576 100755 --- a/inxi +++ b/inxi @@ -1,8 +1,8 @@ #!/bin/bash ######################################################################## #### Script Name: inxi -#### version: 1.4.12 -#### Date: July 24 2010 +#### version: 1.4.13 +#### Date: August 24 2010 ######################################################################## #### SPECIAL THANKS ######################################################################## @@ -2534,6 +2534,13 @@ get_graphics_x_data() print $2 }' ) fi + + # some distros, like fedora, report themselves as the xorg vendor, so quick check + # here to make sure the vendor string includes Xorg in string + if [[ -z $( grep -E '(X|xorg|x\.org)' <<< $x_vendor ) ]];then + x_vendor="$x_vendor X.org" + fi + A_X_DATA[0]="$x_vendor" A_X_DATA[1]="$x_version"