diff options
author | Lenard Spencer <lenardrspencer@gmail.com> | 2020-09-05 08:19:11 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2020-09-05 08:19:11 +0700 |
commit | 5afa0a6e85a0564a43eaa2113aa5600f318403bd (patch) | |
tree | 9f5589215893d8dd86a3102da06f03d4d7825685 /system/nvidia-driver/nvidia-switch | |
parent | 25c6196a46c8756ff43b1504387f5c320f3d3808 (diff) | |
download | slackbuilds-5afa0a6e85a0564a43eaa2113aa5600f318403bd.tar.gz |
system/nvidia-driver: Updated for version 450.66.
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 | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/system/nvidia-driver/nvidia-switch b/system/nvidia-driver/nvidia-switch index c97fef3b3a..e6d268f4bd 100644 --- a/system/nvidia-driver/nvidia-switch +++ b/system/nvidia-driver/nvidia-switch @@ -1,7 +1,7 @@ #!/bin/sh # Copyright 2012-2019 Edward W. Koenig, Vancouver, WA, USA -# Updates copyright 2020 Lenard Spencer, Orlando, FL, USA +# Copyright 2020 Lenard Spencer, Orlando, FL, USA # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -21,7 +21,7 @@ # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # -# nvidia-switch utility 4.7.1 +# nvidia-switch utility 4.7.2 # # A tool to install and cleanly remove the nvidia driver without stomping # on the mesa files. Note: this tool "should" allow switching on the fly, @@ -47,18 +47,17 @@ save_GL(){ cd $2 case "$1" in "nvidia") - if [ ! -e libGL.la-xorg ]; then + if [ -e libGL.la ]; then mv libGL.la libGL.la-xorg fi - cp -a libGL.la-nvidia libGL.la /sbin/ldconfig ;; "xorg") if [ -e libGL.la-xorg ]; then - cp -a libGL.la-xorg libGL.la + mv libGL.la-xorg libGL.la fi - /sbin/ldconfig + /sbin/ldconfig ;; *) @@ -88,7 +87,6 @@ nvidia_remove(){ echo $'Returning to stock xorg files!\n' echo "Make sure the nvidia driver is DISABLED in /etc/X11/xorg.conf" echo "and in /usr/share/X11/xorg.conf.d and /etc/X11/xorg.conf.d." - echo "(Removing nvidia-kernelis recommended to accomplish this.)" echo "Otherwise, this may lead to improperly working drivers." echo -e "\nPlease run /sbin/ldconfing after removing nvidia-driver.\n" |