summarylogtreecommitdiffstats
path: root/clevo-xsm-wmi-dkms.install
diff options
context:
space:
mode:
authorMarc Rozanc2016-03-16 21:39:31 +0100
committerMarc Rozanc2016-03-16 21:39:31 +0100
commit32c6db7e770fc6fb17767215c4a9e962d6174007 (patch)
tree9c22b83f18779973b53c9be89ef1ac58f0999b5a /clevo-xsm-wmi-dkms.install
parent325dac6e2ac7ee5d9efbe7e07bd24360afb74d55 (diff)
downloadaur-32c6db7e770fc6fb17767215c4a9e962d6174007.tar.gz
Updates the package to Arch's new DKMS conventions
Diffstat (limited to 'clevo-xsm-wmi-dkms.install')
-rw-r--r--clevo-xsm-wmi-dkms.install23
1 files changed, 7 insertions, 16 deletions
diff --git a/clevo-xsm-wmi-dkms.install b/clevo-xsm-wmi-dkms.install
index a81d01b1819b..c996aab6375e 100644
--- a/clevo-xsm-wmi-dkms.install
+++ b/clevo-xsm-wmi-dkms.install
@@ -1,20 +1,11 @@
-post_install() {
- dkms install -m clevo-xsm-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 clevo-xsm-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 clevo-xsm-wmi -v ${1%%-*} --all
+ if (( $(vercmp $2 8.0-2) < 0 )); then
+ echo '==> Since version 9.0-1 kernel modules are loaded at boot by systemd-modules-load.'
+ echo '==> Read modules-load.d man page to disable them.'
+ fi
}