diff options
author | OpenEmbedded Project <openembedded-devel@lists.openembedded.org> | 2007-08-08 14:27:13 +0000 |
---|---|---|
committer | OpenEmbedded Project <openembedded-devel@lists.openembedded.org> | 2007-08-08 14:27:13 +0000 |
commit | 60fbc76998faaeb1b9c4f464b9bba5b3d8f0e77e (patch) | |
tree | 4828b2ef6ffea5f477e08b29ea59622945282a10 | |
parent | 5ba2130db4d80cdcf98403c9f541e9bc466ffb49 (diff) | |
parent | d7784d39be0c9df90ad25f75f89ccbf8c32a5bd4 (diff) |
merge of '227d9d1640e292b986196fbecfb628a17ffb9645'
and '5522b4404c3b117f5b3f78bd8e0e0fe14321787b'
-rw-r--r-- | classes/update-rc.d.bbclass | 10 |
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 } |