summaryrefslogtreecommitdiff
path: root/extra/nvidia/nvidia.install
diff options
context:
space:
mode:
Diffstat (limited to 'extra/nvidia/nvidia.install')
-rw-r--r--extra/nvidia/nvidia.install18
1 files changed, 18 insertions, 0 deletions
diff --git a/extra/nvidia/nvidia.install b/extra/nvidia/nvidia.install
new file mode 100644
index 000000000..c2c292ae9
--- /dev/null
+++ b/extra/nvidia/nvidia.install
@@ -0,0 +1,18 @@
+post_install() {
+ EXTRAMODULES='extramodules-3.6-ARCH'
+ depmod $(cat /usr/lib/modules/$EXTRAMODULES/version)
+ echo 'In order to use nvidia module, reboot the system.'
+}
+
+post_upgrade() {
+ EXTRAMODULES='extramodules-3.6-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
+}
+
+post_remove() {
+ EXTRAMODULES='extramodules-3.6-ARCH'
+ depmod $(cat /usr/lib/modules/$EXTRAMODULES/version)
+}