aboutsummaryrefslogtreecommitdiff
path: root/system/nvidia-driver/nvidia-switch
diff options
context:
space:
mode:
authorEdward W. Koenig <kingbeowulf@gmail.com>2014-07-13 22:57:37 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2014-07-16 18:26:34 +0700
commit79e6c8bf0920084b9dff7a1f668bdb5900c1ea87 (patch)
tree5bda5c6ae9d8347914399feb0b532422490ac0c7 /system/nvidia-driver/nvidia-switch
parent069fe0eb64d37f1c8419363f794eea718ed4948c (diff)
system/nvidia-driver: Updated for version 340.24.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'system/nvidia-driver/nvidia-switch')
-rw-r--r--system/nvidia-driver/nvidia-switch22
1 files changed, 11 insertions, 11 deletions
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"
}