summarylogtreecommitdiffstats
path: root/input-wacom-dkms.install
blob: 7844f4257ea7558471376739f0ba6f6d8a346254 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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
}