summaryrefslogtreecommitdiff
path: root/package/input-event-daemon/S99input-event-daemon
diff options
context:
space:
mode:
authorKelvin Cheung <keguang.zhang@gmail.com>2011-04-21 10:30:09 +0800
committerPeter Korsgaard <jacmet@sunsite.dk>2011-05-03 22:43:55 +0200
commitc17f4134384666e1ae6116a08b2ce92da633abef (patch)
treecf4b253ecedbfe0306f735fc4d9486cd9bbeb12f /package/input-event-daemon/S99input-event-daemon
parentb05f23b933018c2ccce890620a6bdbb6619001ce (diff)
New package: input-event-daemon
Add new package: input-event-daemon input-event-daemon - input event handling daemon for linux. [Peter: minor tweaks, use v0.1.3 tag, pass LDFLAGS, combine install step] Signed-off-by: Kelvin Cheung <keguang.zhang@gmail.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Diffstat (limited to 'package/input-event-daemon/S99input-event-daemon')
-rwxr-xr-xpackage/input-event-daemon/S99input-event-daemon39
1 files changed, 39 insertions, 0 deletions
diff --git a/package/input-event-daemon/S99input-event-daemon b/package/input-event-daemon/S99input-event-daemon
new file mode 100755
index 000000000..3a82b06ca
--- /dev/null
+++ b/package/input-event-daemon/S99input-event-daemon
@@ -0,0 +1,39 @@
+#! /bin/sh
+
+[ -f /usr/bin/input-event-daemon ] || exit 0
+
+start() {
+ echo -n "Starting input-event-daemon: "
+ input-event-daemon
+ echo "done"
+}
+
+
+stop() {
+ echo -n "Stopping input-event-daemon: "
+ killall input-event-daemon
+ echo "done"
+}
+
+restart() {
+ stop
+ start
+}
+
+# See how we were called.
+case "$1" in
+ start)
+ start
+ ;;
+ stop)
+ stop
+ ;;
+ restart|reload)
+ restart
+ ;;
+ *)
+ echo "Usage: $0 {start|stop|reload|restart}"
+ exit 1
+esac
+
+exit $?