summaryrefslogtreecommitdiff
path: root/system/nvidia-driver/nvidia-switch
diff options
context:
space:
mode:
authorLenard Spencer <lenardrspencer@gmail.com>2020-04-17 10:44:19 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2020-04-17 10:44:19 +0700
commit8db865d339f9709e12b0911575dbe71d4dd47a60 (patch)
tree9bbd3150842b728c84cfbe00f934678c7b25a370 /system/nvidia-driver/nvidia-switch
parentc52a0ebde1650c44749061865c2b14b425f96d13 (diff)
downloadslackbuilds-8db865d339f9709e12b0911575dbe71d4dd47a60.tar.gz
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-switch11
1 files changed, 7 insertions, 4 deletions
diff --git a/system/nvidia-driver/nvidia-switch b/system/nvidia-driver/nvidia-switch
index af2bd17701..0554fa7335 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
;;