From: Michael Lauer Date: Wed, 5 May 2004 14:08:39 +0000 (+0000) Subject: use update-rc.d instead of hard coding X-Git-Tag: Release-2010-05/1~19324 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d7d8f6dfb26dfac0be1b474d044a2c04f7b35270;p=openembedded.git use update-rc.d instead of hard coding BKrev: 4098f567fgZzU32PeMm7_80G41fjtg --- diff --git a/modutils/modutils-collateral.oe b/modutils/modutils-collateral.oe index 74e2d1d45d..d0e055bddd 100644 --- a/modutils/modutils-collateral.oe +++ b/modutils/modutils-collateral.oe @@ -5,19 +5,11 @@ SRC_URI = "file://${FILESDIR}/modules \ file://${FILESDIR}/modules.conf \ file://${FILESDIR}/modutils" -pkg_postinst () { - if test -n "${D}"; then - D="-r ${D}" - fi - update-rc.d $D modutils start 20 S . -} +INITSCRIPT_NAME = "modutils" +INITSCRIPT_PARAMS = "start 20 S ." + +inherit update-rc.d -pkg_prerm () { - if test -n "${D}"; then - D="-r ${D}" - fi - update-rc.d $D modutils remove -} do_compile () { }