updated on Thu Jan 26 00:18:00 UTC 2012
[aur-mirror.git] / psmouse-elantech / psmouse-elantech-build
blobb02e64e7f5eca2e70e0ebfe0a5e22d64c23eecc8
1 #!/bin/bash
3 . /etc/rc.conf
4 . /etc/rc.d/functions
6 stat_busy "Recompiling psmouse kernel module"
7 cp -r /usr/src/psmouse-elantech /tmp/.psmouse-elantech
8 cd /tmp/.psmouse-elantech
9 make -C /usr/src/linux-`uname -r`/ M=`pwd` psmouse.ko &&
10 gzip -9 < psmouse.ko > psmouse.ko.gz &&
11 install -D -m 0644 psmouse.ko.gz /lib/modules/`uname -r`/updates/drivers/input/mouse/psmouse.ko.gz &&
12 rm -r /tmp/.psmouse-elantech &&
13 stat_done || stat_fail
15 stat_busy "Running depmod now"
16 depmod -a && stat_done || stat_fail
18 printhl "Do not panic if mouse cursor does not move for a second"
19 stat_busy "Reloading psmouse kernel module"
20 modprobe -r psmouse && sleep 0.5 && modprobe psmouse && stat_done || stat_fail