mirror of
git://projects.qi-hardware.com/openwrt-packages.git
synced 2024-11-05 11:15:01 +02:00
16 lines
297 B
Plaintext
16 lines
297 B
Plaintext
|
#!/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
|