summaryrefslogtreecommitdiff
path: root/classes/update-rc.d.bbclass
diff options
context:
space:
mode:
authorKoen Kooi <koen@openembedded.org>2007-08-08 13:42:50 +0000
committerKoen Kooi <koen@openembedded.org>2007-08-08 13:42:50 +0000
commitaafc991015bccabfa1f03cac6ea8b7790c68a50f (patch)
tree57cdc1a636917e2975522614914555cf149871cb /classes/update-rc.d.bbclass
parent213b12efcd44463dbdd77f2f351d0d7e7edfd314 (diff)
update-rc.d: merge in ${D} cleanups from poky
Diffstat (limited to 'classes/update-rc.d.bbclass')
-rw-r--r--classes/update-rc.d.bbclass10
1 files changed, 4 insertions, 6 deletions
diff --git a/classes/update-rc.d.bbclass b/classes/update-rc.d.bbclass
index 9821eec5b2..3051b7933f 100644
--- a/classes/update-rc.d.bbclass
+++ b/classes/update-rc.d.bbclass
@@ -7,17 +7,15 @@ INIT_D_DIR = "${sysconfdir}/init.d"
updatercd_postinst() {
if test "x$D" != "x"; then
- D="-r $D"
+ OPT="-r $D"
else
- D="-s"
+ OPT="-s"
fi
-update-rc.d $D ${INITSCRIPT_NAME} ${INITSCRIPT_PARAMS}
+update-rc.d $OPT ${INITSCRIPT_NAME} ${INITSCRIPT_PARAMS}
}
updatercd_prerm() {
-if test "x$D" != "x"; then
- D="-r $D"
-else
+if test "x$D" = "x"; then
${INIT_D_DIR}/${INITSCRIPT_NAME} stop
fi
}