[oe-commits] Simon Busch : tsmd: install also a little helper script to control the touchscreen daemon
git version control
git at git.openembedded.org
Wed Mar 2 07:32:23 UTC 2011
Module: openembedded.git
Branch: hipox
Commit: 1450ddd6a3da3b5919db4f14684f4bbf583374d0
URL: http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=1450ddd6a3da3b5919db4f14684f4bbf583374d0
Author: Simon Busch <morphis at gravedo.de>
Date: Fri Feb 25 22:43:59 2011 +0100
tsmd: install also a little helper script to control the touchscreen daemon
Signed-off-by: Simon Busch <morphis at gravedo.de>
---
recipes/palmpre/tsmd/tsmd_control | 12 ++++++++++++
recipes/palmpre/tsmd_git.bb | 5 ++++-
2 files changed, 16 insertions(+), 1 deletions(-)
diff --git a/recipes/palmpre/tsmd/tsmd_control b/recipes/palmpre/tsmd/tsmd_control
new file mode 100755
index 0000000..a7668d4
--- /dev/null
+++ b/recipes/palmpre/tsmd/tsmd_control
@@ -0,0 +1,12 @@
+#!/bin/sh
+
+case "$1" in
+ enable)
+ kill -USR2 `pidof tsmd`
+ ;;
+ disable)
+ kill -USR1 `pidof tsmd`
+ ;;
+ *)
+ ;;
+esac
diff --git a/recipes/palmpre/tsmd_git.bb b/recipes/palmpre/tsmd_git.bb
index a7c6054..0cef19e 100644
--- a/recipes/palmpre/tsmd_git.bb
+++ b/recipes/palmpre/tsmd_git.bb
@@ -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
}
More information about the Openembedded-commits
mailing list