summarylogtreecommitdiffstats
path: root/input-wacom-dkms.install
diff options
context:
space:
mode:
authorGiuseppe Sellaroli2015-06-15 13:22:48 -0400
committerGiuseppe Sellaroli2015-06-15 13:22:48 -0400
commit7082c84e55ee9971c748fcf71f7ed2209f213480 (patch)
tree70c5cf83d714c109db097e37b315330b1d1c0d98 /input-wacom-dkms.install
downloadaur-7082c84e55ee9971c748fcf71f7ed2209f213480.tar.gz
initial upload
Diffstat (limited to 'input-wacom-dkms.install')
-rw-r--r--input-wacom-dkms.install26
1 files changed, 26 insertions, 0 deletions
diff --git a/input-wacom-dkms.install b/input-wacom-dkms.install
new file mode 100644
index 000000000000..7844f4257ea7
--- /dev/null
+++ b/input-wacom-dkms.install
@@ -0,0 +1,26 @@
+post_install() {
+ local version=${1%%-*}
+ dkms=$(which dkms)
+ $dkms install -m input-wacom -v $version
+ echo -e "\n"
+ echo "#####################################"
+ echo -e "\n"
+ echo "To avoid conflict with the original modules provided by the kernel, the dkms modules were renamed to 'wacom_dkms' and 'wacom_w8001_dkms'."
+ echo "Should you need to manually load the module, use 'modprobe wacom_dkms' or 'modprobe wacom_w8001_dkms'."
+ echo "To remove the modules, use 'rmmod wacom' or 'rmmod wacom_w8001' instead."
+ echo -e "\n"
+}
+
+pre_upgrade() {
+ pre_remove $2
+}
+
+post_upgrade() {
+ post_install $1
+}
+
+pre_remove() {
+ local version=${1%%-*}
+ dkms=$(which dkms)
+ $dkms remove -m input-wacom -v $version --all
+}