From 2b6d98f628c0d814a421fa79a1c0968a99fb7f32 Mon Sep 17 00:00:00 2001 From: Ross Burton Date: Wed, 26 Sep 2007 08:44:38 +0000 Subject: wpa-supplicant: reload dbus in postinst git-svn-id: https://svn.o-hand.com/repos/poky/trunk@2792 311d38ba-8fff-0310-9ca6-ca027cbcb966 --- meta/packages/wpa-supplicant/wpa-supplicant-0.5.inc | 13 +++++++++++++ meta/packages/wpa-supplicant/wpa-supplicant_0.5.8.bb | 2 +- 2 files changed, 14 insertions(+), 1 deletion(-) (limited to 'meta/packages/wpa-supplicant') diff --git a/meta/packages/wpa-supplicant/wpa-supplicant-0.5.inc b/meta/packages/wpa-supplicant/wpa-supplicant-0.5.inc index 10b769017..bc8cb80e8 100644 --- a/meta/packages/wpa-supplicant/wpa-supplicant-0.5.inc +++ b/meta/packages/wpa-supplicant/wpa-supplicant-0.5.inc @@ -61,3 +61,16 @@ do_install () { install -d ${D}/${sysconfdir}/dbus-1/system.d install -m 644 ${S}/dbus-wpa_supplicant.conf ${D}/${sysconfdir}/dbus-1/system.d } + +pkg_postinst_wpa-supplicant () { + # can't do this offline + if [ "x$D" != "x" ]; then + exit 1 + fi + + DBUSPID=`pidof dbus-daemon` + + if [ "x$DBUSPID" != "x" ]; then + /etc/init.d/dbus-1 reload + fi +} \ No newline at end of file diff --git a/meta/packages/wpa-supplicant/wpa-supplicant_0.5.8.bb b/meta/packages/wpa-supplicant/wpa-supplicant_0.5.8.bb index 67a5b99b0..68eceea91 100644 --- a/meta/packages/wpa-supplicant/wpa-supplicant_0.5.8.bb +++ b/meta/packages/wpa-supplicant/wpa-supplicant_0.5.8.bb @@ -1,3 +1,3 @@ require wpa-supplicant-0.5.inc -PR = "r1" +PR = "r2" -- cgit v1.2.3