wpa-supplicant: reload dbus in postinst

git-svn-id: https://svn.o-hand.com/repos/poky/trunk@2792 311d38ba-8fff-0310-9ca6-ca027cbcb966
This commit is contained in:
Ross Burton
2007-09-26 08:44:38 +00:00
parent eb7cc8a967
commit 2b6d98f628
2 changed files with 14 additions and 1 deletions

View File

@@ -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
}

View File

@@ -1,3 +1,3 @@
require wpa-supplicant-0.5.inc
PR = "r1"
PR = "r2"