You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
297 B

  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