use update-rc.d instead of hard coding
authorMichael Lauer <mickey@vanille-media.de>
Wed, 5 May 2004 14:08:39 +0000 (14:08 +0000)
committerMichael Lauer <mickey@vanille-media.de>
Wed, 5 May 2004 14:08:39 +0000 (14:08 +0000)
BKrev: 4098f567fgZzU32PeMm7_80G41fjtg

modutils/modutils-collateral.oe

index 74e2d1d..d0e055b 100644 (file)
@@ -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 () {
 }