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:19:21 +0100 |
commit | df80b8107660d40000226d66f5c981f437f79325 (patch) | |
tree | 3e2110d3eef39c5d7038a382c11cb311d0cc7371 /meta/recipes-extended/sysklogd/sysklogd.inc | |
parent | 83e4e27246a33eccfc329086444eaa925ccb8499 (diff) | |
download | poky-df80b8107660d40000226d66f5c981f437f79325.tar.gz |
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]
(From OE-Core rev: 806a910927f479207d47b06c20a0497e91203266)
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-extended/sysklogd/sysklogd.inc')
-rw-r--r-- | meta/recipes-extended/sysklogd/sysklogd.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/recipes-extended/sysklogd/sysklogd.inc b/meta/recipes-extended/sysklogd/sysklogd.inc index 1e363db6e8..5c15ffe8ab 100644 --- a/meta/recipes-extended/sysklogd/sysklogd.inc +++ b/meta/recipes-extended/sysklogd/sysklogd.inc | |||
@@ -55,7 +55,7 @@ ALTERNATIVE_LINK_NAME[syslog-conf] = "${sysconfdir}/syslog.conf" | |||
55 | pkg_prerm_${PN} () { | 55 | pkg_prerm_${PN} () { |
56 | if test "x$D" = "x"; then | 56 | if test "x$D" = "x"; then |
57 | if test "$1" = "upgrade" -o "$1" = "remove"; then | 57 | if test "$1" = "upgrade" -o "$1" = "remove"; then |
58 | /etc/init.d/syslog stop | 58 | /etc/init.d/syslog stop || : |
59 | fi | 59 | fi |
60 | fi | 60 | fi |
61 | } | 61 | } |