diff options
Diffstat (limited to 'meta/classes/update-rc.d.bbclass')
-rw-r--r-- | meta/classes/update-rc.d.bbclass | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/meta/classes/update-rc.d.bbclass b/meta/classes/update-rc.d.bbclass index 3364269167..83816d6ad6 100644 --- a/meta/classes/update-rc.d.bbclass +++ b/meta/classes/update-rc.d.bbclass | |||
@@ -28,7 +28,11 @@ fi | |||
28 | } | 28 | } |
29 | 29 | ||
30 | updatercd_postrm() { | 30 | updatercd_postrm() { |
31 | update-rc.d $D ${INITSCRIPT_NAME} remove | 31 | if [ "$D" != "" ]; then |
32 | update-rc.d -f -r $D ${INITSCRIPT_NAME} remove | ||
33 | else | ||
34 | update-rc.d ${INITSCRIPT_NAME} remove | ||
35 | fi | ||
32 | } | 36 | } |
33 | 37 | ||
34 | 38 | ||