From fb7c868ea463c6c9ccdfec6084e2d0297594508d Mon Sep 17 00:00:00 2001 From: John Lee Date: Sat, 29 Nov 2008 01:23:05 +0800 Subject: 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 file changed, 10 insertions(+), 1 deletion(-) (limited to 'packages') 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 +} -- cgit v1.2.3