]> code.ossystems Code Review - openembedded-core.git/commitdiff
wpa-supplicant-2.0: don't exit in pkg_postinst
authorAlexandre Belloni <alexandre.belloni@free-electrons.com>
Thu, 16 Jan 2014 13:34:39 +0000 (14:34 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 16 Jan 2014 23:39:06 +0000 (23:39 +0000)
Exiting explicitly in pkg_postinst makes it impossible to use the
update-rc.d class in a .bbappend because the link creation is appended
to the pkg_postinst script.

Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-connectivity/wpa-supplicant/wpa-supplicant-2.0.inc

index 491dfbfafff7afbbbd9e74d85ca31899c752ac78..9b722cb0e1ba4deab91c44a618be295affa4b305 100644 (file)
@@ -82,9 +82,8 @@ do_install () {
 
 pkg_postinst_wpa-supplicant () {
        # If we're offline, we don't need to do this.
-       if [ "x$D" != "x" ]; then
-               exit 0
+       if [ "x$D" = "x" ]; then
+               killall -q -HUP dbus-daemon || true
        fi
 
-       killall -q -HUP dbus-daemon || true
 }