diff options
author | Giuseppe Sellaroli | 2015-06-15 13:22:48 -0400 |
---|---|---|
committer | Giuseppe Sellaroli | 2015-06-15 13:22:48 -0400 |
commit | 7082c84e55ee9971c748fcf71f7ed2209f213480 (patch) | |
tree | 70c5cf83d714c109db097e37b315330b1d1c0d98 /input-wacom-dkms.install | |
download | aur-7082c84e55ee9971c748fcf71f7ed2209f213480.tar.gz |
initial upload
Diffstat (limited to 'input-wacom-dkms.install')
-rw-r--r-- | input-wacom-dkms.install | 26 |
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 +} |