summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
author joe.on.list2020-01-14 08:55:36 +0100
committer Matteo Bernardini2020-01-14 08:55:36 +0100
commit18efd3d9d5ee513b3d600d9dff22dc3deeb10ec2 (patch)
tree05417f6475cbc4a5cd290848c9a1f4d5e2f7f5dc
parent8f37b269efd6fa4435edf77f0531fef9ea25ecb4 (diff)
downloadslackbuilds-nvidia-legacy340-driver.tar.gz
system/nvidia-legacy340-driver: Fix libEGL version in nvidia-switch.nvidia-legacy340-driver
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
-rw-r--r--system/nvidia-legacy340-driver/nvidia-switch15
1 files changed, 8 insertions, 7 deletions
diff --git a/system/nvidia-legacy340-driver/nvidia-switch b/system/nvidia-legacy340-driver/nvidia-switch
index 0355bf1e8a..fe6c962fb0 100644
--- a/system/nvidia-legacy340-driver/nvidia-switch
+++ b/system/nvidia-legacy340-driver/nvidia-switch
@@ -41,6 +41,7 @@ XMOD="${LIB}/xorg/modules"
XLIB="$XMOD/extensions"
NV_VERSION='PKGVERSION' # This will be replaced in the build script
GL_VERSION="1.7.0"
+EGL_VERSION="1.1.0"
NV_CONF="/usr/share/X11/xorg.conf.d/10-nvidia.conf"
save_GL(){
@@ -52,11 +53,11 @@ save_GL(){
mv libGL.so.$NV_VERSION-nvidia libGL.so.$NV_VERSION
ln -sf libGL.so.$NV_VERSION libGL.so.1
ln -sf libGL.so.$NV_VERSION libGL.so
- if [ ! -e libEGL.so.1.0.0-xorg ]; then
- mv libEGL.so.1.0.0 libEGL.so.1.0.0-xorg
+ if [ ! -e libEGL.so.$EGL_VERSION-xorg ]; then
+ mv libEGL.so.$EGL_VERSION libEGL.so.$EGL_VERSION-xorg
fi
mv libEGL.so.$NV_VERSION-nvidia libEGL.so.$NV_VERSION
- ln -sf libEGL.so.$NV_VERSION libGEL.so.1.0.0
+ ln -sf libEGL.so.$NV_VERSION libEGL.so.$EGL_VERSION
ln -sf libEGL.so.$NV_VERSION libEGL.so.1
ln -sf libEGL.so.$NV_VERSION libEGL.so
fi
@@ -71,10 +72,10 @@ save_GL(){
echo WARNING: libGL.so is missing.
fi
mv libEGL.so.$NV_VERSION libEGL.so.$NV_VERSION-nvidia
- if [ -e libEGL.so.1.0.0-xorg ]; then
- mv libEGL.so.1.0.0-xorg libEGL.so.1.0.0
- ln -sf libEGL.so.1.0.0 libEGL.so.1
- ln -sf libEGL.so.1.0.0 libEGL.so
+ if [ -e libEGL.so.$EGL_VERSION-xorg ]; then
+ mv libEGL.so.$EGL_VERSION-xorg libEGL.so.$EGL_VERSION
+ ln -sf libEGL.so.$EGL_VERSION libEGL.so.1
+ ln -sf libEGL.so.$EGL_VERSION libEGL.so
fi
fi