aboutsummaryrefslogtreecommitdiff
path: root/system/nvidia-driver/nvidia-switch
diff options
context:
space:
mode:
authorEdward W. Koenig <kingbeowulf@gmail.com>2015-02-09 20:21:34 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2015-02-09 20:30:32 +0700
commitae34289e60884e2a377973de71ccb0e6b9d486bd (patch)
tree82117cf29f62d16738ed13d324f602574bde572a /system/nvidia-driver/nvidia-switch
parent9588f2fe3f367e1c8870238a1989f417bab08655 (diff)
system/nvidia-driver: Updated for version 346.35.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'system/nvidia-driver/nvidia-switch')
-rw-r--r--system/nvidia-driver/nvidia-switch29
1 files changed, 2 insertions, 27 deletions
diff --git a/system/nvidia-driver/nvidia-switch b/system/nvidia-driver/nvidia-switch
index 43ab255b57175..0d559c28b5fb3 100644
--- a/system/nvidia-driver/nvidia-switch
+++ b/system/nvidia-driver/nvidia-switch
@@ -1,6 +1,6 @@
#!/bin/sh
-# Copyright 2012-2013 Edward W. Koenig, Vancouver, WA, USA
+# Copyright 2012-2015 Edward W. Koenig, Vancouver, WA, USA
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -20,7 +20,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 2.2
+# nvidia-switch utility 2.3
#
# A tool to install and cleanly remove the nvidia driver without stomping on the xorg files.
# Note: this tool "should" allow switching on the fly, but why? Pick a driver! You will still
@@ -79,35 +79,12 @@ save_GL(){
mv libEGL.so.1.0.0-xorg libEGL.so.1.0.0
ln -sf libEGL.so.1.0.0 libEGL.so.1
ln -sf libEGL.so.1.0.0 libEGL.so
- mv libEGL.la-xorg libEGL.la
fi
fi
cd "$CWD"
}
-save_wfb(){
- cd "$XMOD"
- if [ "$1" = "nvidia" ]; then
- mv libnvidia-wfb.so.$NV_VERSION-nvidia libnvidia-wfb.so.$NV_VERSION
- ln -sf libnvidia-wfb.so.$NV_VERSION libnvidia-wfb.so.1
- if [ ! -e libwfb.so ]; then
- mv libwfb.so libwfb.so-xorg
- ln -sf libnvidia-wfb.so.$NV_VERSION libwfb.so
- fi
- elif [ "$1" = "xorg" ]; then
- mv libnvidia-wfb.so.$NV_VERSION libnvidia-wfb.so.$NV_VERSION-nvidia
- rm -f libnvidia-wfb.so.1
- if [ -L libwfb.so ]; then
- rm -f libwfb.so
- if [ -e libwfb.so-xorg ]; then
- mv libwfb.so-xorg libwfb.so
- fi
- fi
- fi
- cd "$CWD"
-}
-
save_glx(){
cd "$XLIB"
if [ "$1" = "nvidia" ]; then
@@ -139,7 +116,6 @@ nvidia_install(){
echo "Otherwise, this may lead to improperly working drivers."
save_GL "nvidia" $LIB
- save_wfb "nvidia"
save_glx "nvidia"
# Check for multilib configuration
if [ "$COMPAT32" = "yes" ]; then
@@ -157,7 +133,6 @@ nvidia_remove(){
echo "Otherwise, this may lead to improperly working drivers."
save_GL "xorg" $LIB
- save_wfb "xorg"
save_glx "xorg"
# Check for multilib configuration
if [ "$COMPAT32" = "yes" ]; then