1
0

triggerhappy.hotplug 297 B

123456789101112131415
  1. #!/bin/sh
  2. THD_SOCKET=/tmp/triggerhappy.socket
  3. [ -S "$THD_SOCKET" ] || exit
  4. case "$ACTION" in
  5. add)
  6. DEVICE="/dev/$DEVNAME"
  7. [ -c "$DEVICE" ] || exit
  8. # offer device to triggerhappy daemon
  9. /usr/sbin/th-cmd --socket "$THD_SOCKET" --add "$DEVICE"
  10. ;;
  11. remove)
  12. # nothing to do
  13. ;;
  14. esac