aboutsummaryrefslogtreecommitdiff
path: root/system/nvidia-legacy96-driver/doinst.sh
blob: 2099f2ecb3c0573d521d029e01b302153df7d7c1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
if [ -x /usr/bin/update-desktop-database ]; then
  ./usr/bin/update-desktop-database -q usr/share/applications
fi

if ! [ -e usr/libLIBDIRSUFFIX/xorg/modules/libwfb.so ]; then
  ( cd usr/libLIBDIRSUFFIX/xorg/modules ; ln -s libnvidia-wfb.so.1 libwfb.so )
fi

( cd usr/libLIBDIRSUFFIX/tls ; rm -rf libnvidia-tls.so.1 )
( cd usr/libLIBDIRSUFFIX/tls ; ln -sf libnvidia-tls.so.PKGVERSION libnvidia-tls.so.1 )
( cd usr/libLIBDIRSUFFIX/xorg/modules ; rm -rf libnvidia-wfb.so.1 )
( cd usr/libLIBDIRSUFFIX/xorg/modules ; ln -sf libnvidia-wfb.so.PKGVERSION libnvidia-wfb.so.1 )
( cd usr/libLIBDIRSUFFIX ; rm -rf libnvidia-cfg.so.1 )
( cd usr/libLIBDIRSUFFIX ; ln -sf libnvidia-cfg.so.PKGVERSION libnvidia-cfg.so.1 )
( cd usr/libLIBDIRSUFFIX ; rm -rf libnvidia-tls.so.1 )
( cd usr/libLIBDIRSUFFIX ; ln -sf libnvidia-tls.so.PKGVERSION libnvidia-tls.so.1 )
( cd usr/libLIBDIRSUFFIX ; rm -rf libXvMCNVIDIA_dynamic.so.1 )
( cd usr/libLIBDIRSUFFIX ; ln -sf libXvMCNVIDIA.so.PKGVERSION libXvMCNVIDIA_dynamic.so.1 )
( cd usr/libLIBDIRSUFFIX ; rm -rf libnvidia-cfg.so )
( cd usr/libLIBDIRSUFFIX ; ln -sf libnvidia-cfg.so.1 libnvidia-cfg.so )

/usr/sbin/nvidia-switch --install