wpa-supplicant-2.0: don't exit in pkg_postinst

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.

(From OE-Core master rev: 758d53d3044f29f3c33ffee3ada88c9edc9f864f)

(From OE-Core rev: 7d7481667fcf4550513aec1eca20d87b4ddfd40e)

Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Alexandre Belloni 2014-01-16 14:34:39 +01:00 committed by Richard Purdie
parent 10aff7de08
commit 0671c08f13
1 changed files with 2 additions and 3 deletions

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