diff options
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 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 ;; |