diff options
author | Lenard Spencer <lenardrspencer@gmail.com> | 2020-04-17 10:44:19 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2020-04-17 10:44:19 +0700 |
commit | 8db865d339f9709e12b0911575dbe71d4dd47a60 (patch) | |
tree | 9bbd3150842b728c84cfbe00f934678c7b25a370 /system/nvidia-driver/nvidia-switch | |
parent | c52a0ebde1650c44749061865c2b14b425f96d13 (diff) |
system/nvidia-driver: Updated for version 440.82.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'system/nvidia-driver/nvidia-switch')
-rw-r--r-- | system/nvidia-driver/nvidia-switch | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/system/nvidia-driver/nvidia-switch b/system/nvidia-driver/nvidia-switch index af2bd1770191..0554fa733557 100644 --- a/system/nvidia-driver/nvidia-switch +++ b/system/nvidia-driver/nvidia-switch @@ -47,14 +47,17 @@ save_GL(){ cd $2 case "$1" in "nvidia") - mv libGL.la libGL.la-xorg - mv libGL.la-nvidia libGL.la + if [ ! -e libGL.la-xorg ]; then + mv libGL.la libGL.la-xorg + fi + cp -a libGL.la-nvidia libGL.la /sbin/ldconfig ;; "xorg") - mv libGL.la libGL.la-nvidia - mv libGL.la-xorg libGL.la + if [ -e libGL.la-xorg ]; then + cp -a libGL.la-xorg libGL.la + fi /sbin/ldconfig ;; |