1
0
mirror of git://projects.qi-hardware.com/openwrt-packages.git synced 2024-11-19 22:47:31 +02:00
openwrt-packages/utils/triggerhappy/files/triggerhappy.init
Stefan Tomanek 4dcfd38b2f add triggerhappy hotkey daemon
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.

Signed-off-by: Stefan Tomanek <stefan.tomanek+openwrt@wertarbyte.de>
2010-11-17 17:31:14 +08: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
}