[oe-commits] John Lee : om-settings: postinst script

GIT User account git at amethyst.openembedded.net
Thu Dec 18 16:13:36 UTC 2008


Module: openembedded.git
Branch: org.openembedded.dev
Commit: fb7c868ea463c6c9ccdfec6084e2d0297594508d
URL:    http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=fb7c868ea463c6c9ccdfec6084e2d0297594508d

Author: John Lee <john_lee at openmoko.com>
Date:   Sat Nov 29 01:23:05 2008 +0800

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.

---

 packages/openmoko-projects/om-settings_svn.bb |   11 ++++++++++-
 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 56b8e1d..579dd3d 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
+}





More information about the Openembedded-commits mailing list