summaryrefslogtreecommitdiffstats
path: root/meta/classes/update-rc.d.bbclass
diff options
context:
space:
mode:
Diffstat (limited to 'meta/classes/update-rc.d.bbclass')
-rw-r--r--meta/classes/update-rc.d.bbclass6
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
30updatercd_postrm() { 30updatercd_postrm() {
31update-rc.d $D ${INITSCRIPT_NAME} remove 31if [ "$D" != "" ]; then
32 update-rc.d -f -r $D ${INITSCRIPT_NAME} remove
33else
34 update-rc.d ${INITSCRIPT_NAME} remove
35fi
32} 36}
33 37
34 38