mirror of
https://github.com/smxi/inxi.git
synced 2024-11-17 00:31:19 +00:00
added in handling for when the vendor string for xorg is NOT xorg, but something else, like fedora
This commit is contained in:
parent
3b102a7b43
commit
3438103c7a
11
inxi
11
inxi
|
@ -1,8 +1,8 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
########################################################################
|
########################################################################
|
||||||
#### Script Name: inxi
|
#### Script Name: inxi
|
||||||
#### version: 1.4.12
|
#### version: 1.4.13
|
||||||
#### Date: July 24 2010
|
#### Date: August 24 2010
|
||||||
########################################################################
|
########################################################################
|
||||||
#### SPECIAL THANKS
|
#### SPECIAL THANKS
|
||||||
########################################################################
|
########################################################################
|
||||||
|
@ -2534,6 +2534,13 @@ get_graphics_x_data()
|
||||||
print $2
|
print $2
|
||||||
}' )
|
}' )
|
||||||
fi
|
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[0]="$x_vendor"
|
||||||
A_X_DATA[1]="$x_version"
|
A_X_DATA[1]="$x_version"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue