diff options
author | Marc Rozanc | 2016-03-16 22:40:49 +0100 |
---|---|---|
committer | Marc Rozanc | 2016-03-16 22:40:49 +0100 |
commit | ccd82a6ceb605670da8cd4dd362e20e313acb94f (patch) | |
tree | 35c1cb0653e1750c96fed147624539e5876b3f58 /tuxedo-wmi-dkms.install | |
parent | 6b21f8cea49be5eb84eda75a42a2fb035492c501 (diff) | |
download | aur-ccd82a6ceb605670da8cd4dd362e20e313acb94f.tar.gz |
Updates the package to Arch's new DKMS conventions
Diffstat (limited to 'tuxedo-wmi-dkms.install')
-rw-r--r-- | tuxedo-wmi-dkms.install | 23 |
1 files changed, 7 insertions, 16 deletions
diff --git a/tuxedo-wmi-dkms.install b/tuxedo-wmi-dkms.install index 9cee95462e8a..cdc111c76f79 100644 --- a/tuxedo-wmi-dkms.install +++ b/tuxedo-wmi-dkms.install @@ -1,20 +1,11 @@ -post_install() { - dkms install -m tuxedo-wmi -v ${1%%-*} -} - -pre_upgrade() { - local curver=${2%%-*} - # $2 is unset due to a bug. See, https://bugs.archlinux.org/task/32278 - # Query current version using pacman as fallback - [ -n "$curver" ] || curver=$(pacman -Q tuxedo-wmi-dkms | cut -d' ' -f2) - pre_remove $curver -} +#!/bin/bash +# arg 1: the new package version +# arg 2: the old package version post_upgrade() { - post_install ${1%%-*} -} - -pre_remove() { - dkms remove -m tuxedo-wmi -v ${1%%-*} --all + if (( $(vercmp $2 1.5.1-2) < 0 )); then + echo '==> Since version 1.5.1-2 kernel modules are loaded at boot by systemd-modules-load.' + echo '==> Read modules-load.d man page to disable them.' + fi } |