Triggerhappy is a lightweight hotkey daemon that
[openwrt.org/packages.git] / utils / triggerhappy / files / triggerhappy.init
blob:a/utils/triggerhappy/files/triggerhappy.init -> blob:b/utils/triggerhappy/files/triggerhappy.init
--- a/utils/triggerhappy/files/triggerhappy.init
+++ b/utils/triggerhappy/files/triggerhappy.init
@@ -1,1 +1,11 @@
+#!/bin/sh /etc/rc.common
+START=93
 
+start() {
+	/usr/sbin/thd --socket /tmp/triggerhappy.socket --triggers /etc/triggerhappy/triggers.d/ --daemon /dev/input/event*
+}
+
+stop() {
+	/usr/sbin/th-cmd --socket /tmp/triggerhappy.socket --quit
+}
+

comments