diff options
author | Markus Lehtonen <markus.lehtonen@linux.intel.com> | 2016-10-11 15:43:29 +0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-10-11 22:18:36 +0100 |
commit | 806a910927f479207d47b06c20a0497e91203266 (patch) | |
tree | 24f39e24387564a0bee872a45eb2bb27a13e3f64 /meta/recipes-core | |
parent | daa3c266a7ffa060b52381fa00df518102fceda8 (diff) | |
download | openembedded-core-806a910927f479207d47b06c20a0497e91203266.tar.gz openembedded-core-806a910927f479207d47b06c20a0497e91203266.tar.bz2 openembedded-core-806a910927f479207d47b06c20a0497e91203266.zip |
sysklogd and busybox: ignore return code from init script stop
The init script will return '1' if we try to stop the service and it is
not currently running. The prerm scriptlet must not fail because of this
because it will cause package deinstallation of upgrade fail if opkg
package manager is used.
[YOCTO #10299]
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-core')
-rw-r--r-- | meta/recipes-core/busybox/busybox.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/recipes-core/busybox/busybox.inc b/meta/recipes-core/busybox/busybox.inc index f67bbbc420..b2f1960226 100644 --- a/meta/recipes-core/busybox/busybox.inc +++ b/meta/recipes-core/busybox/busybox.inc @@ -423,7 +423,7 @@ pkg_prerm_${PN}-syslog () { # remove syslog if test "x$D" = "x"; then if test "$1" = "upgrade" -o "$1" = "remove"; then - ${sysconfdir}/init.d/syslog stop + ${sysconfdir}/init.d/syslog stop || : fi fi } |