diff options
Diffstat (limited to 'system/nvidia-driver/nvidia-switch')
-rw-r--r-- | system/nvidia-driver/nvidia-switch | 14 |
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" |