summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/classes/update-rc.d.bbclass10
1 files changed, 4 insertions, 6 deletions
diff --git a/meta/classes/update-rc.d.bbclass b/meta/classes/update-rc.d.bbclass
index 9821eec5b2..cb217681e3 100644
--- a/meta/classes/update-rc.d.bbclass
+++ b/meta/classes/update-rc.d.bbclass
@@ -7,17 +7,15 @@ INIT_D_DIR = "${sysconfdir}/init.d"
7 7
8updatercd_postinst() { 8updatercd_postinst() {
9if test "x$D" != "x"; then 9if test "x$D" != "x"; then
10 D="-r $D" 10 OPT="-r $D"
11else 11else
12 D="-s" 12 OPT="-s"
13fi 13fi
14update-rc.d $D ${INITSCRIPT_NAME} ${INITSCRIPT_PARAMS} 14update-rc.d $OPT ${INITSCRIPT_NAME} ${INITSCRIPT_PARAMS}
15} 15}
16 16
17updatercd_prerm() { 17updatercd_prerm() {
18if test "x$D" != "x"; then 18if test "x$D" == "x"; then
19 D="-r $D"
20else
21 ${INIT_D_DIR}/${INITSCRIPT_NAME} stop 19 ${INIT_D_DIR}/${INITSCRIPT_NAME} stop
22fi 20fi
23} 21}