summaryrefslogtreecommitdiff
path: root/packages/openmoko-projects
diff options
context:
space:
mode:
authorJohn Lee <john_lee@openmoko.com>2008-11-29 01:23:05 +0800
committerJohn Lee <john_lee@openmoko.org>2008-12-18 23:59:07 +0800
commitfb7c868ea463c6c9ccdfec6084e2d0297594508d (patch)
tree81291590baa80c8c49372cac1707c433d1941e24 /packages/openmoko-projects
parent663564ed1de3e2a1a793d97a725cf20d7952cb5f (diff)
om-settings: postinst script
for some interesting reason this small program is actually client-server based, so give it a postinst script to restart properly after upgrade.
Diffstat (limited to 'packages/openmoko-projects')
-rw-r--r--packages/openmoko-projects/om-settings_svn.bb11
1 files changed, 10 insertions, 1 deletions
diff --git a/packages/openmoko-projects/om-settings_svn.bb b/packages/openmoko-projects/om-settings_svn.bb
index 56b8e1d017..579dd3d1be 100644
--- a/packages/openmoko-projects/om-settings_svn.bb
+++ b/packages/openmoko-projects/om-settings_svn.bb
@@ -2,7 +2,7 @@ DESCRIPTION = "Exposure all devices on neo1973"
DEPENDS = "python-etk python-edbus"
RDEPENDS = "python-etk python-re python-codecs python-edbus python-pyxdg"
PV = "0.0.1+svnr${SRCREV}"
-PR = "r2.05"
+PR = "r3"
PE = "1"
S = "${WORKDIR}/trunk"
@@ -14,3 +14,12 @@ SRC_URI = "svn://svn.projects.openmoko.org/svnroot/exposure;module=trunk;proto=h
PACKAGES = "${PN}"
FILES_${PN} += "${prefix}/share/* ${sysconfdir}/X11/Xsession.d/*"
+
+pkg_postinst_${PN} () {
+#!/bin/sh
+if test "x$D" = "x"; then
+ killall exposure.py
+ sleep 1
+ exposure.py
+fi
+}