summaryrefslogtreecommitdiffstats
path: root/abs/core/nvidia/nvidia.install
diff options
context:
space:
mode:
authorBritney Fransen <brfransen@gmail.com>2015-05-27 21:06:43 (GMT)
committerBritney Fransen <brfransen@gmail.com>2015-05-27 21:06:43 (GMT)
commitb4a6b571f0c3eb6b56d6467e9c501caeab2de314 (patch)
tree3c3360b7a59607f6aaebe845eb7ae9ced2d16c62 /abs/core/nvidia/nvidia.install
parent76cfee8d414e05914aff6adcaea49d9ee604c4eb (diff)
downloadlinhes_pkgbuild-b4a6b571f0c3eb6b56d6467e9c501caeab2de314.zip
linhes_pkgbuild-b4a6b571f0c3eb6b56d6467e9c501caeab2de314.tar.gz
linhes_pkgbuild-b4a6b571f0c3eb6b56d6467e9c501caeab2de314.tar.bz2
nvidia & nvidia-utils: update to 352.09
Diffstat (limited to 'abs/core/nvidia/nvidia.install')
-rw-r--r--abs/core/nvidia/nvidia.install11
1 files changed, 3 insertions, 8 deletions
diff --git a/abs/core/nvidia/nvidia.install b/abs/core/nvidia/nvidia.install
index af0670c..1a56d94 100644
--- a/abs/core/nvidia/nvidia.install
+++ b/abs/core/nvidia/nvidia.install
@@ -1,20 +1,15 @@
post_install() {
EXTRAMODULES='extramodules-3.18-ARCH'
- depmod $(cat /usr/lib/modules/$EXTRAMODULES/version)
+ depmod $(cat /usr/lib/modules/${EXTRAMODULES}/version)
echo 'In order to use nvidia module, reboot the system.'
}
post_upgrade() {
- EXTRAMODULES='extramodules-3.18-ARCH'
- 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
echo "* * * * * /usr/bin/bash /usr/MythVantage/bin/xconfig.cron" >> /var/spool/cron/root
echo "root" >> /var/spool/cron/cron.update
+ post_install
}
post_remove() {
- EXTRAMODULES='extramodules-3.18-ARCH'
- depmod $(cat /usr/lib/modules/$EXTRAMODULES/version)
+ post_install
}