summaryrefslogtreecommitdiffstats
path: root/abs/core/nvidia/nvidia.install
blob: af0670c72f324205edcd6541fd977ec590ea0fb7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
post_install() {
    EXTRAMODULES='extramodules-3.18-ARCH'
    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_remove() {
    EXTRAMODULES='extramodules-3.18-ARCH'
    depmod $(cat /usr/lib/modules/$EXTRAMODULES/version)
}