gl-select: tweaked to work properly with file 5.21

This commit is contained in:
Matt Housh 2014-12-22 16:22:05 -06:00
parent 1938e99213
commit f21f243fce
3 changed files with 4 additions and 4 deletions

View File

@ -1 +1 @@
813f8d03147741f30f09df2420b59fb3 gl-select
69925cb48dde78a5fb2f001ccd3fbf9f gl-select

View File

@ -5,8 +5,8 @@
# Depends on: xorg-server
name=gl-select
version=1.4
release=2
version=1.5
release=1
source=($name)
build() {

View File

@ -82,7 +82,7 @@ doGLsymlinks() {
doStatus() {
# check which selection its being used
local file=$(file -h /usr/lib/libGL.so.1.2.0 | cut -d'`' -f2 | cut -d":" -f1 | sed "s|'||")
local file=$(file -h /usr/lib/libGL.so.1.2.0 | awk '{ if (/symbolic link/) print $5; else print $1; }' | sed 's|:||')
case $file in
*libGL.so.1.2.0) echo "* xorg gl/glx is selected" ;;
*libGL_so_1_2_nvidia) echo "* nvidia gl/glx is selected" ;;