Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH] update-rc.d.bbclass: check that init script exists before running it
@ 2016-10-05 14:11 Markus Lehtonen
  2016-10-05 14:51 ` Andreas Oberritter
  0 siblings, 1 reply; 7+ messages in thread
From: Markus Lehtonen @ 2016-10-05 14:11 UTC (permalink / raw)
  To: openembedded-core

Check that the init script that is going to be called in the prerm()
script really exists. There might be a packaging bug or the script
might've been removed already earlier in prerm().

[YOCTO #10299]

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
---
 meta/classes/update-rc.d.bbclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/classes/update-rc.d.bbclass b/meta/classes/update-rc.d.bbclass
index dfef2a2..24da547 100644
--- a/meta/classes/update-rc.d.bbclass
+++ b/meta/classes/update-rc.d.bbclass
@@ -37,7 +37,7 @@ fi
 }
 
 updatercd_prerm() {
-if [ -z "$D" ]; then
+if [ -z "$D" -a -f "${INIT_D_DIR}/${INITSCRIPT_NAME}" ]; then
 	${INIT_D_DIR}/${INITSCRIPT_NAME} stop
 fi
 }
-- 
2.6.6



^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2016-10-08 14:41 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-10-05 14:11 [PATCH] update-rc.d.bbclass: check that init script exists before running it Markus Lehtonen
2016-10-05 14:51 ` Andreas Oberritter
2016-10-06  8:49   ` Markus Lehtonen
2016-10-06 10:12     ` Phil Blundell
2016-10-06 13:46       ` Markus Lehtonen
2016-10-06 15:12         ` Phil Blundell
2016-10-08 14:41           ` Andreas Oberritter

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox