packages/utils/triggerhappy/files/triggerhappy.init
mirko aa23d11176 Triggerhappy is a lightweight hotkey daemon that
can launch arbitrary commands on input events.
It supports the hotplugging of devices and the
processing of key combinations.

Thanks to Stefan Tomanek!

git-svn-id: svn://svn.openwrt.org/openwrt/packages@24018 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-11-17 12:09:45 +00:00

11 lines
235 B
Bash

#!/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
}