diff options
author | Edward Koenig <kingbeowulf@gmail.com> | 2013-11-08 09:22:41 -0600 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2013-11-09 01:34:40 -0600 |
commit | 5f1b97edfa0edc58870b8872b2c0a9560a786063 (patch) | |
tree | c88f769478e497ec2bd46355ca6ab59566a9adf6 /system/nvidia-legacy304-driver/nvidia-switch | |
parent | 63c5f809106e3a30eb7974b325db6c717c020956 (diff) | |
download | slackbuilds-5f1b97edfa0edc58870b8872b2c0a9560a786063.tar.gz |
system/nvidia-legacy304-driver: Updated for version 304.108.
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'system/nvidia-legacy304-driver/nvidia-switch')
-rw-r--r-- | system/nvidia-legacy304-driver/nvidia-switch | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/system/nvidia-legacy304-driver/nvidia-switch b/system/nvidia-legacy304-driver/nvidia-switch index ef8e8e5fc9..66a9901163 100644 --- a/system/nvidia-legacy304-driver/nvidia-switch +++ b/system/nvidia-legacy304-driver/nvidia-switch @@ -35,23 +35,21 @@ LIB="${ROOT}usr/lib${LIBSUFFIX}" 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(){ cd "$LIB" if [ "$1" = "nvidia" ]; then - if [ ! -e libGL.so.$GL_VERSION-xorg ]; then - mv libGL.so.$GL_VERSION libGL.so.$GL_VERSION-xorg - fi + mv libGL.so.$GL_VERSION libGL.so.$GL_VERSION-xorg ln -sf libGL.so.$NV_VERSION-nvidia libGL.so.$NV_VERSION ln -sf libGL.so.$NV_VERSION libGL.so.1 ln -sf libGL.so.1 libGL.so 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.1 libGL.so - rm -f libGL.so.$NV_VERSION + mv libGL.so.$GL_VERSION-xorg libGL.so.$GL_VERSION + rm -f libGL.so.$NV_VERSION + ln -sf libGL.so.$GL_VERSION libGL.so.1 + ln -sf libGL.so.$GL_VERSION libGL.so fi cd "$CWD" } @@ -125,7 +123,7 @@ nvidia_remove(){ rm -f $NV_CONF fi - LD_NVIDIA="${LIB}/libGL.so.1.2" + LD_NVIDIA="${LIB}/libGL.so.$GL_VERSION" nvidia_ldconfig $LD_NVIDIA } |