From 48caaff9da7af37cb769c1dbcfd5de4b9bc3d595 Mon Sep 17 00:00:00 2001 From: Chris Larson Date: Tue, 2 Dec 2003 22:36:32 +0000 Subject: Add acpid and apache startup scripts, and have them call update-rc.d. BKrev: 3fcd13f0H57xM3oWJ1RKXNOcC77faA --- acpid/acpid-1.0.2/init | 0 acpid/acpid_1.0.2.oe | 17 +++++++++++++++++ 2 files changed, 17 insertions(+) create mode 100644 acpid/acpid-1.0.2/init (limited to 'acpid') diff --git a/acpid/acpid-1.0.2/init b/acpid/acpid-1.0.2/init new file mode 100644 index 0000000000..e69de29bb2 diff --git a/acpid/acpid_1.0.2.oe b/acpid/acpid_1.0.2.oe index 9e1274b8ce..7b962dbed0 100644 --- a/acpid/acpid_1.0.2.oe +++ b/acpid/acpid_1.0.2.oe @@ -10,4 +10,21 @@ do_compile () { do_install () { oe_runmake 'INSTPREFIX=${D}' install + install -d ${D}/${sysconfdir}/init.d + cat ${FILESDIR}/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 } -- cgit v1.2.3