[oe-commits] John Lee : om-settings: postinst script
GIT User account
git at amethyst.openembedded.net
Wed Dec 17 12:56:45 UTC 2008
Module: openembedded.git
Branch: john_lee/openmoko-merges
Commit: 57bd0d829ecd04c99da42fe9c4ec3d98f4e65e9d
URL: http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=57bd0d829ecd04c99da42fe9c4ec3d98f4e65e9d
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..a782dae 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 = "r2.06"
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