build: PKGBUILD for ArchLinux
[reset-trackpoint-fix.git] / reset-trackpoint-fix.sh
1 #!/bin/sh
2
3 ### https://git.thekondor.net/?p=reset-trackpoint-fix.git (mirror: github.com/thekondor/reset-trackpoint-fix)
4
5 . /etc/reset-trackpoint-fix.conf
6
7 if [ -z "${DEVICE}" ]; then
8   echo "*** No Trackpoint SerIO device specifed. Do nothing."
9   exit 1
10 fi
11
12 for mode in none reconnect; do
13   echo "- Put ${DEVICE} to '${mode}' state"
14   echo -n ${mode} > /sys/bus/serio/devices/${DEVICE}/drvctl
15 done