diff options
author | Marcin Juszkiewicz <hrw@openembedded.org> | 2007-03-29 12:55:13 +0000 |
---|---|---|
committer | Marcin Juszkiewicz <hrw@openembedded.org> | 2007-03-29 12:55:13 +0000 |
commit | f136df84b633c76c600bb2b46637e189e5db176b (patch) | |
tree | 915ed7b637b7adb7585080879ca1e3b2ae257fd7 /packages/acpid/acpid.inc | |
parent | dd4760f7cedf0fd50bde55efd565c88e7d794cc8 (diff) |
acpid: use update-rc.d class
Diffstat (limited to 'packages/acpid/acpid.inc')
-rw-r--r-- | packages/acpid/acpid.inc | 19 |
1 files changed, 5 insertions, 14 deletions
diff --git a/packages/acpid/acpid.inc b/packages/acpid/acpid.inc index c96f431224..69517a7681 100644 --- a/packages/acpid/acpid.inc +++ b/packages/acpid/acpid.inc @@ -5,6 +5,11 @@ LICENSE="GPL" SRC_URI = "${SOURCEFORGE_MIRROR}/acpid/acpid-${PV}.tar.gz \ file://init" +inherit update-rc.d + +INITSCRIPT_NAME = "acpid" +INITSCRIPT_PARAMS = "defaults" + EXTRA_OEMAKE = "" do_compile () { oe_runmake 'CC=${CC}' 'CROSS=${HOST_PREFIX}' @@ -16,17 +21,3 @@ do_install () { cat ${WORKDIR}/init | sed -e's,/usr/sbin,${sbindir},g' > ${D}${sysconfdir}/init.d/acpid chmod 755 ${D}${sysconfdir}/init.d/acpid } - -pkg_postinst () { - if test -n "${D}"; then - D="-r $D" - fi - update-rc.d $D acpid defaults -} - -pkg_prerm () { - if test -n "${D}"; then - D="-r $D" - fi - update-rc.d $D acpid remove -} |