gl-select: tweaked to work properly with file 5.21
This commit is contained in:
parent
1938e99213
commit
f21f243fce
@ -1 +1 @@
|
||||
813f8d03147741f30f09df2420b59fb3 gl-select
|
||||
69925cb48dde78a5fb2f001ccd3fbf9f gl-select
|
||||
|
@ -5,8 +5,8 @@
|
||||
# Depends on: xorg-server
|
||||
|
||||
name=gl-select
|
||||
version=1.4
|
||||
release=2
|
||||
version=1.5
|
||||
release=1
|
||||
source=($name)
|
||||
|
||||
build() {
|
||||
|
@ -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" ;;
|
||||
|
Loading…
x
Reference in New Issue
Block a user