pkgbuilds/nvidia-drd/nvidia.install

19 lines
553 B
Text
Raw Normal View History

2013-10-05 10:53:06 +02:00
post_install() {
2014-10-08 10:00:29 +02:00
EXTRAMODULES='extramodules-3.17-drd'
2013-10-05 10:53:06 +02:00
depmod $(cat /usr/lib/modules/$EXTRAMODULES/version)
echo 'In order to use nvidia module, reboot the system.'
}
post_upgrade() {
2014-10-08 10:00:29 +02:00
EXTRAMODULES='extramodules-3.17-drd'
2013-10-05 10:53:06 +02:00
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() {
2014-10-08 10:00:29 +02:00
EXTRAMODULES='extramodules-3.17-drd'
2013-10-05 10:53:06 +02:00
depmod $(cat /usr/lib/modules/$EXTRAMODULES/version)
}