Add fixed evdi-pre-release

This commit is contained in:
moparisthebest
2017-07-11 12:46:29 -04:00
parent 3e49c3651f
commit b5047bd222
3 changed files with 82 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
# old version (without -$pkgrel): ${1%%-*}
# new version (without -$pkgrel): ${2%%-*}
post_install() {
echo 'DKMS install...'
dkms install evdi/${1%%-*}
}
pre_upgrade() {
pre_remove ${2%%-*}
}
post_upgrade() {
post_install ${1%%-*}
}
pre_remove() {
echo 'DKMS remove...'
dkms remove evdi/${1%%-*} --all
}