diff options
Diffstat (limited to 'douane-dkms.install')
-rw-r--r-- | douane-dkms.install | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/douane-dkms.install b/douane-dkms.install new file mode 100644 index 000000000000..7bd166f81e53 --- /dev/null +++ b/douane-dkms.install @@ -0,0 +1,15 @@ +post_install() { + dkms install -m douane -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 douane-dkms | awk '/^Version/{print $3}') + pre_remove $curver +} +post_upgrade() { + post_install ${1%%-*} +} +pre_remove() { + dkms remove -m douane -v ${1%%-*} --all +}
\ No newline at end of file |