summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/classes/update-rc.d.bbclass4
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
14updatercd_preinst() { 14updatercd_preinst() {
15if [ -z "$D" -a -f "${INIT_D_DIR}/${INITSCRIPT_NAME}" ]; then 15if [ -z "$D" -a -f "${INIT_D_DIR}/${INITSCRIPT_NAME}" ]; then
16 ${INIT_D_DIR}/${INITSCRIPT_NAME} stop 16 ${INIT_D_DIR}/${INITSCRIPT_NAME} stop || :
17fi 17fi
18if type update-rc.d >/dev/null 2>/dev/null; then 18if 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
39updatercd_prerm() { 39updatercd_prerm() {
40if [ -z "$D" -a -x "${INIT_D_DIR}/${INITSCRIPT_NAME}" ]; then 40if [ -z "$D" -a -x "${INIT_D_DIR}/${INITSCRIPT_NAME}" ]; then
41 ${INIT_D_DIR}/${INITSCRIPT_NAME} stop 41 ${INIT_D_DIR}/${INITSCRIPT_NAME} stop || :
42fi 42fi
43} 43}
44 44