diff options
Diffstat (limited to 'meta/classes/update-rc.d.bbclass')
-rw-r--r-- | meta/classes/update-rc.d.bbclass | 2 |
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 | ||
39 | updatercd_prerm() { | 39 | updatercd_prerm() { |
40 | if [ -z "$D" ]; then | 40 | if [ -z "$D" -a -x "${INIT_D_DIR}/${INITSCRIPT_NAME}" ]; then |
41 | ${INIT_D_DIR}/${INITSCRIPT_NAME} stop | 41 | ${INIT_D_DIR}/${INITSCRIPT_NAME} stop |
42 | fi | 42 | fi |
43 | } | 43 | } |