[oe-commits] John Lee : update-rc.d.bbclass: honor $D as well in updatercd_postrm

GIT User account git at amethyst.openembedded.net
Mon Dec 22 06:29:24 UTC 2008


Module: openembedded.git
Branch: org.openembedded.dev
Commit: 9280ba1f0ba54dc18a6989b59d85e17dee6b805e
URL:    http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=9280ba1f0ba54dc18a6989b59d85e17dee6b805e

Author: John Lee <john_lee at openmoko.org>
Date:   Mon Dec 22 14:17:22 2008 +0800

update-rc.d.bbclass: honor $D as well in updatercd_postrm

Without this, postrm script will try to remove service on the host
system in a toolchain environment.

Patch created by Christopher Hall <hsw at openmoko.com>

---

 classes/update-rc.d.bbclass |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/classes/update-rc.d.bbclass b/classes/update-rc.d.bbclass
index 9b832c0..6328193 100644
--- a/classes/update-rc.d.bbclass
+++ b/classes/update-rc.d.bbclass
@@ -21,7 +21,12 @@ fi
 }
 
 updatercd_postrm() {
-update-rc.d $D ${INITSCRIPT_NAME} remove
+if test "x$D" != "x"; then
+	OPT="-r $D"
+else
+	OPT=""
+fi
+update-rc.d $OPT ${INITSCRIPT_NAME} remove
 }
 
 





More information about the Openembedded-commits mailing list