Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- post_install() {
- dkms install -m nvidia -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 dkms-nvidia | awk '/^Version/{print $3}')
- pre_remove $curver
- }
- post_upgrade() {
- post_install ${1%%-*}
- }
- pre_remove() {
- dkms remove -m nvidia -v ${1%%-*} --all
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement