summaryrefslogtreecommitdiff
path: root/system/nvidia-legacy71-driver/doinst.sh
diff options
context:
space:
mode:
authorHeinz Wiesinger <pprkut@liwjatan.at>2010-05-11 22:55:23 +0200
committerDavid Somero <xgizzmo@slackbuilds.org>2010-05-11 22:55:23 +0200
commite0fd79774967d3fce8c95cfd5ddb4fc32f956671 (patch)
tree44d5804cf8d647f6359e15d709eab7979a8d9d7c /system/nvidia-legacy71-driver/doinst.sh
parent4697dc487295530d20101a2b16f771ce504c697f (diff)
downloadslackbuilds-e0fd79774967d3fce8c95cfd5ddb4fc32f956671.tar.gz
system/nvidia-legacy71-driver: Added to 12.1 repository
Diffstat (limited to 'system/nvidia-legacy71-driver/doinst.sh')
-rw-r--r--system/nvidia-legacy71-driver/doinst.sh23
1 files changed, 23 insertions, 0 deletions
diff --git a/system/nvidia-legacy71-driver/doinst.sh b/system/nvidia-legacy71-driver/doinst.sh
new file mode 100644
index 0000000000..d2ac12b154
--- /dev/null
+++ b/system/nvidia-legacy71-driver/doinst.sh
@@ -0,0 +1,23 @@
+if [ -x /usr/bin/update-desktop-database ]; then
+ ./usr/bin/update-desktop-database -q usr/share/applications
+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 )
+
+/usr/sbin/nvidia-switch --install
+