From: Ross Burton Date: Tue, 16 Apr 2013 14:25:04 +0000 (+0100) Subject: wpa-supplicant: don't call DBus init script directly X-Git-Tag: yocto-4.0~33193 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d6fb028de172bb649b905b605f6ddc8402af859a;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git wpa-supplicant: don't call DBus init script directly After installing Avahi we need DBus to reload it's configuration. In a pure-systemd image there isn't a DBus init script to reload, so cut out the middleman and just sent SIGHUP to all running dbus-daemon processes instead. Signed-off-by: Ross Burton Signed-off-by: Richard Purdie --- diff --git a/meta/recipes-connectivity/wpa-supplicant/wpa-supplicant-2.0.inc b/meta/recipes-connectivity/wpa-supplicant/wpa-supplicant-2.0.inc index dd850578af9..e5f7881a269 100644 --- a/meta/recipes-connectivity/wpa-supplicant/wpa-supplicant-2.0.inc +++ b/meta/recipes-connectivity/wpa-supplicant/wpa-supplicant-2.0.inc @@ -84,9 +84,5 @@ pkg_postinst_wpa-supplicant () { exit 0 fi - DBUSPID=`pidof dbus-daemon` - - if [ "x$DBUSPID" != "x" ]; then - /etc/init.d/dbus-1 reload || true - fi + killall -q -HUP dbus-daemon || true }