From: Markus Lehtonen Date: Thu, 6 Oct 2016 13:37:04 +0000 (+0300) Subject: update-rc.d.bbclass: check that init script is executable before running it X-Git-Tag: 2016-10~70 X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=aabb87c9dbd60fe9467ca0354ec05c275a3f1b1a;p=openembedded-core.git update-rc.d.bbclass: check that init script is executable before running it Check that the init script that is going to be called in the prerm() script really exists and is executable. There might be a packaging bug or the script might've been removed already earlier in prerm(). [YOCTO #10299] Signed-off-by: Markus Lehtonen Signed-off-by: Richard Purdie --- diff --git a/meta/classes/update-rc.d.bbclass b/meta/classes/update-rc.d.bbclass index dfef2a2fd6..348f3c0962 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 -x "${INIT_D_DIR}/${INITSCRIPT_NAME}" ]; then ${INIT_D_DIR}/${INITSCRIPT_NAME} stop fi }