diff options
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 c97fef3b3acd2..e6d268f4bd951 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" |