summaryrefslogtreecommitdiff
path: root/system/nvidia-driver/doinst.sh
diff options
context:
space:
mode:
authorHeinz Wiesinger <HMWiesinger@gmx.at>2010-05-11 20:02:03 +0200
committerRobby Workman <rworkman@slackbuilds.org>2010-05-11 20:02:03 +0200
commit682760848256a56de42b9e10c4929feba888fcdf (patch)
treef146b49ac8bda5645e5250c6ed01b09a234c5308 /system/nvidia-driver/doinst.sh
parentfce259cdc46047da7f40c2d1c6e91af293674a85 (diff)
downloadslackbuilds-682760848256a56de42b9e10c4929feba888fcdf.tar.gz
system/nvidia-driver: Added to 12.0 repository
Diffstat (limited to 'system/nvidia-driver/doinst.sh')
-rw-r--r--system/nvidia-driver/doinst.sh28
1 files changed, 28 insertions, 0 deletions
diff --git a/system/nvidia-driver/doinst.sh b/system/nvidia-driver/doinst.sh
new file mode 100644
index 0000000000..11586152dd
--- /dev/null
+++ b/system/nvidia-driver/doinst.sh
@@ -0,0 +1,28 @@
+
+if [ -x usr/bin/update-desktop-database ]; then
+ ./usr/bin/update-desktop-database ./usr/share/applications >/dev/null 2>&1
+fi
+
+if ! [ -e usr/lib/xorg/modules/libwfb.so ]; then
+ ( cd usr/lib/xorg/modules ; ln -s libnvidia-wfb.so.1 libwfb.so )
+fi
+
+( cd usr/lib/tls ; rm -rf libnvidia-tls.so.1 )
+( cd usr/lib/tls ; ln -sf tls/libnvidia-tls.so.PKGVERSION libnvidia-tls.so.1 )
+( cd usr/lib/xorg/modules ; rm -rf libnvidia-wfb.so.1 )
+( cd usr/lib/xorg/modules ; ln -sf libnvidia-wfb.so.PKGVERSION libnvidia-wfb.so.1 )
+( cd usr/lib ; rm -rf libnvidia-cfg.so.1 )
+( cd usr/lib ; ln -sf libnvidia-cfg.so.PKGVERSION libnvidia-cfg.so.1 )
+( cd usr/lib ; rm -rf libnvidia-tls.so.1 )
+( cd usr/lib ; ln -sf libnvidia-tls.so.PKGVERSION libnvidia-tls.so.1 )
+( cd usr/lib ; rm -rf libXvMCNVIDIA_dynamic.so.1 )
+( cd usr/lib ; ln -sf libXvMCNVIDIA.so.PKGVERSION libXvMCNVIDIA_dynamic.so.1 )
+( cd usr/lib ; rm -rf libnvidia-cfg.so )
+( cd usr/lib ; ln -sf libnvidia-cfg.so.1 libnvidia-cfg.so )
+( cd usr/lib ; rm -rf libcuda.so.1 )
+( cd usr/lib ; ln -sf libcuda.so.PKGVERSION libcuda.so.1 )
+( cd usr/lib ; rm -rf libcuda.so )
+( cd usr/lib ; ln -sf libcuda.so.1 libcuda.so )
+
+/usr/sbin/nvidia-switch --nvidia
+