From 79e6c8bf0920084b9dff7a1f668bdb5900c1ea87 Mon Sep 17 00:00:00 2001 From: "Edward W. Koenig" Date: Sun, 13 Jul 2014 22:57:37 +0700 Subject: system/nvidia-driver: Updated for version 340.24. Signed-off-by: Willy Sudiarto Raharjo --- system/nvidia-driver/nvidia-switch | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'system/nvidia-driver/nvidia-switch') diff --git a/system/nvidia-driver/nvidia-switch b/system/nvidia-driver/nvidia-switch index 1dc6e5f5ee97..c861d5a034ff 100644 --- a/system/nvidia-driver/nvidia-switch +++ b/system/nvidia-driver/nvidia-switch @@ -20,13 +20,13 @@ # 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.0.1 +# nvidia-switch utility 2.0.2 # # 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 +# Note: this tool "should" allow switching on the fly, but why? Pick a driver! You will still # need to edit a bunch of other config files -# TO-DO: Bounds/error checking, add more COMPAT32? +# TO-DO: Bounds/error checking, add more COMPAT32? set -e @@ -52,8 +52,8 @@ save_GL(){ ln -sf libGL.so.$NV_VERSION-nvidia libGL.so.$NV_VERSION ln -sf libGL.so.$NV_VERSION libGL.so.1 ln -sf libGL.so.1 libGL.so -# Check for multilib configuration - if [ "$COMPAT32" = "yes" ]; then +# Check for multilib configuration + if [ "$COMPAT32" = "yes" ]; then cd $LIB32 if [ ! -e libGL.so.$GL_VERSION-xorg ]; then mv libGL.so.$GL_VERSION libGL.so.$GL_VERSION-xorg @@ -63,12 +63,12 @@ save_GL(){ ln -sf libGL.so.1 libGL.so fi elif [ "$1" = "xorg" ]; then - mv libGL.so.$GL_VERSION-xorg libGL.so.$GL_VERSION + mv libGL.so.$GL_VERSION-xorg libGL.so.$GL_VERSION ln -sf libGL.so.$GL_VERSION libGL.so.1 ln -sf libGL.so.1 libGL.so rm -f libGL.so.$NV_VERSION # Check for multilib and reverse any "damage" - if [ "$COMPAT32" = "yes" ]; then + if [ "$COMPAT32" = "yes" ]; then cd $LIB32 mv libGL.so.$GL_VERSION-xorg libGL.so.$GL_VERSION ln -sf libGL.so.$GL_VERSION libGL.so.1 @@ -115,7 +115,7 @@ save_glx(){ rm -f libglx.so mv libglx.so-xorg libglx.so mv libglx.la-xorg libglx.la - fi + fi cd "$CWD" } @@ -134,7 +134,7 @@ nvidia_install(){ save_GL "nvidia" save_wfb "nvidia" save_glx "nvidia" - + LD_NVIDIA="${LIB}/libGL.so.$NV_VERSION-nvidia" nvidia_ldconfig $LD_NVIDIA @@ -154,14 +154,14 @@ nvidia_remove(){ if [ -e $NV_CONF ]; then rm -f $NV_CONF fi - + LD_NVIDIA="${LIB}/libGL.so.$GL_VERSION" nvidia_ldconfig $LD_NVIDIA } usage(){ echo "Usage:" - echo " --install Set up nvidia driver files" + echo " --install Set up nvidia driver files (only during pkg install)" echo " --remove Return to stock xorg files and remove all symlinks" echo " --help Show this help message" } -- cgit v1.2.3