summaryrefslogtreecommitdiff
path: root/community/catalyst-dkms/catalyst.install
blob: 655468646f65c9b255a1bb3b8a55907a07473e18 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
post_install() {
    dkms install -m fglrx -v $1
}

pre_upgrade() {
    local curver=$2
    # $2 is unset due to a bug. Query current version using pacman as fallback
    [ -n "$curver" ] || curver=$(pacman -Qi catalyst-dkms | awk '/^Version/{print $3}')
    pre_remove $curver
}

post_upgrade() {
    post_install $1
}

pre_remove() {
    dkms remove -m fglrx -v $1 --all
}