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:
15
utils/triggerhappy/files/triggerhappy.hotplug
Normal file
15
utils/triggerhappy/files/triggerhappy.hotplug
Normal 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
|
||||
Reference in New Issue
Block a user