From d7d8f6dfb26dfac0be1b474d044a2c04f7b35270 Mon Sep 17 00:00:00 2001 From: Michael Lauer Date: Wed, 5 May 2004 14:08:39 +0000 Subject: use update-rc.d instead of hard coding BKrev: 4098f567fgZzU32PeMm7_80G41fjtg --- modutils/modutils-collateral.oe | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) 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 () { } -- cgit v1.2.3