diff options
-rw-r--r-- | meta/classes/update-rc.d.bbclass | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/classes/update-rc.d.bbclass b/meta/classes/update-rc.d.bbclass index 348f3c0962..321924bb3e 100644 --- a/meta/classes/update-rc.d.bbclass +++ b/meta/classes/update-rc.d.bbclass | |||
@@ -13,7 +13,7 @@ INIT_D_DIR = "${sysconfdir}/init.d" | |||
13 | 13 | ||
14 | updatercd_preinst() { | 14 | updatercd_preinst() { |
15 | if [ -z "$D" -a -f "${INIT_D_DIR}/${INITSCRIPT_NAME}" ]; then | 15 | if [ -z "$D" -a -f "${INIT_D_DIR}/${INITSCRIPT_NAME}" ]; then |
16 | ${INIT_D_DIR}/${INITSCRIPT_NAME} stop | 16 | ${INIT_D_DIR}/${INITSCRIPT_NAME} stop || : |
17 | fi | 17 | fi |
18 | if type update-rc.d >/dev/null 2>/dev/null; then | 18 | if type update-rc.d >/dev/null 2>/dev/null; then |
19 | if [ -n "$D" ]; then | 19 | if [ -n "$D" ]; then |
@@ -38,7 +38,7 @@ fi | |||
38 | 38 | ||
39 | updatercd_prerm() { | 39 | updatercd_prerm() { |
40 | if [ -z "$D" -a -x "${INIT_D_DIR}/${INITSCRIPT_NAME}" ]; then | 40 | if [ -z "$D" -a -x "${INIT_D_DIR}/${INITSCRIPT_NAME}" ]; then |
41 | ${INIT_D_DIR}/${INITSCRIPT_NAME} stop | 41 | ${INIT_D_DIR}/${INITSCRIPT_NAME} stop || : |
42 | fi | 42 | fi |
43 | } | 43 | } |
44 | 44 | ||