summaryrefslogtreecommitdiff
path: root/system/nvidia-driver/nvidia-switch
diff options
context:
space:
mode:
authorEdward Koenig <kingbeowulf@gmail.com>2013-11-04 21:51:57 -0600
committerRobby Workman <rworkman@slackbuilds.org>2013-11-04 21:53:02 -0600
commit985e1cf54ebfd0c3361678635fced345ad48e3d0 (patch)
tree0f4234eb22f0ef06bffbc1f2653431ea19b6a47a /system/nvidia-driver/nvidia-switch
parentafc578a3dba8a4a52aa36b47b2d7a5d6c937ebb3 (diff)
downloadslackbuilds-985e1cf54ebfd0c3361678635fced345ad48e3d0.tar.gz
system/nvidia-driver: Updated for version 319.60.
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'system/nvidia-driver/nvidia-switch')
-rw-r--r--system/nvidia-driver/nvidia-switch14
1 files changed, 5 insertions, 9 deletions
diff --git a/system/nvidia-driver/nvidia-switch b/system/nvidia-driver/nvidia-switch
index 8369e993f0..1dc6e5f5ee 100644
--- a/system/nvidia-driver/nvidia-switch
+++ b/system/nvidia-driver/nvidia-switch
@@ -40,7 +40,7 @@ LIB32="${ROOT}usr/lib"
XMOD="${LIB}/xorg/modules"
XLIB="$XMOD/extensions"
NV_VERSION='PKGVERSION' # This will be replaced in the build script
-GL_VERSION="1.2"
+GL_VERSION="1.2.0"
NV_CONF="/usr/share/X11/xorg.conf.d/10-nvidia.conf"
save_GL(){
@@ -64,20 +64,16 @@ save_GL(){
fi
elif [ "$1" = "xorg" ]; then
mv libGL.so.$GL_VERSION-xorg libGL.so.$GL_VERSION
- ln -sf libGL.so.$GL_VERSION libGL.so.1
+ ln -sf libGL.so.$GL_VERSION libGL.so.1
ln -sf libGL.so.1 libGL.so
rm -f libGL.so.$NV_VERSION
# Check for multilib and reverse any "damage"
if [ "$COMPAT32" = "yes" ]; then
cd $LIB32
- rm -f libGL.so
- rm -f libGL.so.1
- rm -f libGL.so.$NV_VERSION
- if [ -f libGL.so.$GL_VERSION-xorg ]; then
- mv libGL.so.$GL_VERSION-xorg libGL.so.$GL_VERSION
- fi
- ln -sf libGL.so.$GL_VERSION libGL.so.1
+ mv libGL.so.$GL_VERSION-xorg libGL.so.$GL_VERSION
+ ln -sf libGL.so.$GL_VERSION libGL.so.1
ln -sf libGL.so.1 libGL.so
+ rm -f libGL.so.$NV_VERSION
fi
fi
cd "$CWD"