gsm0710muxd svn send SIGHUP to dbus to make it reread its configuration files
authorMichael Lauer <mickey@vanille-media.de>
Wed, 6 Feb 2008 23:20:48 +0000 (23:20 +0000)
committerMichael Lauer <mickey@vanille-media.de>
Wed, 6 Feb 2008 23:20:48 +0000 (23:20 +0000)
packages/freesmartphone/gsm0710muxd_svn.bb

index f451f78..0849b55 100644 (file)
@@ -4,7 +4,7 @@ SECTION = "console/network"
 DEPENDS = "intltool-native dbus"
 LICENSE = "GPL"
 PV = "0.0+svnr${SRCREV}"
-PR = "r1"
+PR = "r2"
 
 SRC_URI = "svn://projects.linuxtogo.org/svn/smartphones/trunk/software;module=gsm0710muxd"
 S = "${WORKDIR}/gsm0710muxd"
@@ -18,3 +18,13 @@ do_install_append() {
        chmod a+rx ${D}${sysconfdir}/init.d/gsm0710muxd
 }
 
+pkg_postinst_${PN}() {
+       # can't do this offline
+       if [ "x$D" != "x" ]; then
+               exit 1
+       fi
+       # reload dbus configuration files
+       for i in `pidof dbus-daemon`; do
+               kill -SIGHUP $i
+       done
+}