pkgbuilds/nvidia-drd/nvidia.install

18 lines
553 B
Text

post_install() {
EXTRAMODULES='extramodules-3.16-drd'
depmod $(cat /usr/lib/modules/$EXTRAMODULES/version)
echo 'In order to use nvidia module, reboot the system.'
}
post_upgrade() {
EXTRAMODULES='extramodules-3.16-drd'
depmod $(cat /usr/lib/modules/$EXTRAMODULES/version)
if [ "$(vercmp $2 310.19-2)" -lt 0 ]; then
echo 'If your card is from the 7xxx series or earlier, install nvidia-304xx'
fi
}
post_remove() {
EXTRAMODULES='extramodules-3.16-drd'
depmod $(cat /usr/lib/modules/$EXTRAMODULES/version)
}