if [ -x /usr/bin/update-desktop-database ]; then
  /usr/bin/update-desktop-database -q usr/share/applications
fi

./usr/sbin/nvidia-switch --install

( cd usr/lib64 ; rm -rf libnvidia-cfg.so.1 )
( cd usr/lib64 ; ln -sf libnvidia-cfg.so.340.102 libnvidia-cfg.so.1 )
( cd usr/lib64 ; rm -rf libvdpau_nvidia.so )
( cd usr/lib64 ; ln -sf libvdpau_nvidia.so.340.102 libvdpau_nvidia.so )
( cd usr/lib64 ; rm -rf libOpenCL.so.1.0 )
( cd usr/lib64 ; ln -sf libOpenCL.so.1.0.0 libOpenCL.so.1.0 )
( cd usr/lib64 ; rm -rf libOpenCL.so.1 )
( cd usr/lib64 ; ln -sf libOpenCL.so.1.0 libOpenCL.so.1 )
( cd usr/lib64 ; rm -rf libnvcuvid.so )
( cd usr/lib64 ; ln -sf libnvcuvid.so.1 libnvcuvid.so )
( cd usr/lib64 ; rm -rf libcuda.so.1 )
( cd usr/lib64 ; ln -sf libcuda.so.340.102 libcuda.so.1 )
( cd usr/lib64 ; rm -rf libOpenCL.so )
( cd usr/lib64 ; ln -sf libOpenCL.so.1 libOpenCL.so )
( cd usr/lib64 ; rm -rf libnvcuvid.so.1 )
( cd usr/lib64 ; ln -sf libnvcuvid.so.340.102 libnvcuvid.so.1 )
( cd usr/lib64 ; rm -rf libcuda.so )
( cd usr/lib64 ; ln -sf libcuda.so.1 libcuda.so )
( cd usr/lib64 ; rm -rf libnvidia-cfg.so )
( cd usr/lib64 ; ln -sf libnvidia-cfg.so.1 libnvidia-cfg.so )
( cd usr/lib64 ; rm -rf libnvidia-tls.so.340.102 )
( cd usr/lib64 ; ln -sf tls/libnvidia-tls.so.340.102 libnvidia-tls.so.340.102 )
