1
0
mirror of git://projects.qi-hardware.com/openwrt-packages.git synced 2024-11-19 17:37:31 +02:00
openwrt-packages/utils/triggerhappy/files/triggerhappy.hotplug
Xiangfu Liu 9c9b62d9fd 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.
2010-11-21 00:02:07 +08:00

16 lines
297 B
Bash

#!/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