1
0
mirror of git://projects.qi-hardware.com/openwrt-packages.git synced 2025-04-21 12:27:27 +03:00

Revert "remove <triggerhappy> since it went upstream"

since the upstream triggerhappy 0.1.5 not working in NanoNote
  use decide use the old one 0.1.3 with kyak's patch

This reverts commit 18ed9b5cdf.
This commit is contained in:
Xiangfu Liu
2010-11-20 23:38:01 +08:00
parent 97542ba41a
commit 9c9b62d9fd
4 changed files with 90 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
#!/bin/sh
THD_SOCKET=/tmp/triggerhappy.socket
[ -S "$THD_SOCKET" ] || exit
case "$ACTION" in
add)
DEVICE="/dev/$DEVNAME"
[ -c "$DEVICE" ] || exit
# offer device to triggerhappy daemon
/usr/sbin/th-cmd --socket "$THD_SOCKET" --add "$DEVICE"
;;
remove)
# nothing to do
;;
esac