updated on Thu Jan 12 08:01:00 UTC 2012
[aur-mirror.git] / psmouse-elantech / psmouse-elantech.install
blobc0a631e26098fe1e82a544855aab10b7908bacf0
1 post_install() {
2         echo " > Every time after updating your kernel:"
3         echo " >  1. reboot your system"
4         echo " >  2. run /usr/sbin/psmouse-elantech-build to build new"
5         echo " >     module for running kernel"
6         echo " >"
7         echo " > Alternatively add 'psmouse-elantech' to your DAEMONS array in"
8         echo " > /etc/rc.conf to recompile every time needed."
9         /usr/sbin/psmouse-elantech-build
12 post_upgrade() {
13         post_install
16 post_remove() {
17         echo " > Source files and build script have been removed."
18         echo " > Probably you have to look for kernel modules in"
19         echo " > /lib/modules/<kernel version>/updates/drivers/input/mouse/"
20         echo " > yourself."
21         for LIBDIR in /lib/modules/*; do
22                 [ -f ${LIBDIR}/updates/drivers/input/mouse/psmouse.ko.gz ] && rm ${LIBDIR}/updates/drivers/input/mouse/psmouse.ko.gz
23         done