summaryrefslogtreecommitdiffstats
path: root/meta/classes/update-rc.d.bbclass
diff options
context:
space:
mode:
authorMarkus Lehtonen <markus.lehtonen@linux.intel.com>2016-10-06 16:37:04 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-10-07 16:53:18 +0100
commitac647ea6964e166c395334fe107015030adc1b76 (patch)
tree638926a47d32adbdce05370d2612c638c290819b /meta/classes/update-rc.d.bbclass
parent35362715b1fa0bbdc052d81a327a0a36131be4d1 (diff)
downloadpoky-ac647ea6964e166c395334fe107015030adc1b76.tar.gz
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] (From OE-Core rev: aabb87c9dbd60fe9467ca0354ec05c275a3f1b1a) Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/update-rc.d.bbclass')
-rw-r--r--meta/classes/update-rc.d.bbclass2
1 files changed, 1 insertions, 1 deletions
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
37} 37}
38 38
39updatercd_prerm() { 39updatercd_prerm() {
40if [ -z "$D" ]; then 40if [ -z "$D" -a -x "${INIT_D_DIR}/${INITSCRIPT_NAME}" ]; then
41 ${INIT_D_DIR}/${INITSCRIPT_NAME} stop 41 ${INIT_D_DIR}/${INITSCRIPT_NAME} stop
42fi 42fi
43} 43}