[oe-commits] [openembedded-core] 02/02: update-rc.d.bbclass: check that init script is executable before running it
git at git.openembedded.org
git at git.openembedded.org
Fri Oct 7 15:54:03 UTC 2016
rpurdie pushed a commit to branch master
in repository openembedded-core.
commit aabb87c9dbd60fe9467ca0354ec05c275a3f1b1a
Author: Markus Lehtonen <markus.lehtonen at linux.intel.com>
AuthorDate: Thu Oct 6 16:37:04 2016 +0300
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 <markus.lehtonen at linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
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..348f3c0 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
}
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Openembedded-commits
mailing list