tsmd: install also a little helper script to control the touchscreen daemon
authorSimon Busch <morphis@gravedo.de>
Fri, 25 Feb 2011 21:43:59 +0000 (22:43 +0100)
committerSimon Busch <morphis@gravedo.de>
Sun, 27 Feb 2011 12:58:04 +0000 (13:58 +0100)
Signed-off-by: Simon Busch <morphis@gravedo.de>
recipes/palmpre/tsmd/tsmd_control [new file with mode: 0755]
recipes/palmpre/tsmd_git.bb

diff --git a/recipes/palmpre/tsmd/tsmd_control b/recipes/palmpre/tsmd/tsmd_control
new file mode 100755 (executable)
index 0000000..a7668d4
--- /dev/null
@@ -0,0 +1,12 @@
+#!/bin/sh
+
+case "$1" in
+       enable)
+               kill -USR2 `pidof tsmd`
+               ;;
+       disable)
+               kill -USR1 `pidof tsmd`
+               ;;
+       *)
+               ;;
+esac
index a7c6054..0cef19e 100644 (file)
@@ -6,13 +6,14 @@ LICENSE = "GPL"
 
 DEPENDS = "tslib"
 
-PR = "r2"
+PR = "r3"
 PV = "1.0.0+gitr${SRCPV}"
 
 SRCREV = "9262a2e4f8f6e6c7bcacf1eeae0ad348cbfcce06"
 SRC_URI = " \
  ${FREESMARTPHONE_GIT}/utilities.git;protocol=git;branch=master \
  file://tsmd \
+ file://tsmd_control \
 "
 
 S = "${WORKDIR}/git/palmpre/tsmd"
@@ -27,4 +28,6 @@ INITSCRIPT_PARAMS = "defaults 10"
 do_install_append() {
        install -d 0644 ${D}${sysconfdir}/init.d/
        install -m 0755 ${WORKDIR}/${INITSCRIPT_NAME} ${D}${sysconfdir}/init.d/
+       install -d 0644 ${D}${base_bindir}/
+       install -m 0755 ${WORKDIR}/tsmd_control ${D}${base_bindir}/tsmd_control
 }