summaryrefslogtreecommitdiff
path: root/classes
diff options
context:
space:
mode:
authorFlorian Boor <florian.boor@kernelconcepts.de>2007-08-08 17:06:27 +0000
committerFlorian Boor <florian.boor@kernelconcepts.de>2007-08-08 17:06:27 +0000
commit89f4a812b9defa0977d3c2fa3416a96a2772a92b (patch)
tree48df21f21eb976a39801d2134c9eaac1015b45ef /classes
parentf2bfdec5ff7076060a95daa21922374cfa4ef9c4 (diff)
parentb6cea476b9e88669253d1e8761c8f3f118d91228 (diff)
merge of '445066af3cf565c9d88cd6187570272cfa926958'
and '76d3b20f964cec7e37a6e3a20c6298ed35aee629'
Diffstat (limited to 'classes')
-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
}