git.openpandora.org
/
openembedded.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
213b12e
)
update-rc.d: merge in ${D} cleanups from poky
author
Koen Kooi
<koen@openembedded.org>
Wed, 8 Aug 2007 13:42:50 +0000
(13:42 +0000)
committer
Koen Kooi
<koen@openembedded.org>
Wed, 8 Aug 2007 13:42:50 +0000
(13:42 +0000)
classes/update-rc.d.bbclass
patch
|
blob
|
history
diff --git
a/classes/update-rc.d.bbclass
b/classes/update-rc.d.bbclass
index
9821eec
..
3051b79
100644
(file)
--- 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
}