From 9aaeb4623d3ff5746e665bc17914eefd292b7dcd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20K=C3=BChling?= Date: Sun, 2 Jan 2011 15:19:00 +0100 Subject: New OpenWrt package for GNU Octave. Experimental/probably still broken. Work in progress. Committing it as compilation seems to take forever. Not sure whether I can finish this within a few days. --- triggersad/files/triggerhappy.hotplug | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 triggersad/files/triggerhappy.hotplug (limited to 'triggersad/files/triggerhappy.hotplug') diff --git a/triggersad/files/triggerhappy.hotplug b/triggersad/files/triggerhappy.hotplug new file mode 100644 index 0000000..78ad349 --- /dev/null +++ b/triggersad/files/triggerhappy.hotplug @@ -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 -- cgit v1.2.3