aboutsummaryrefslogtreecommitdiffstats
path: root/acpid
diff options
context:
space:
mode:
authorChris Larson <clarson@kergoth.com>2003-12-02 22:36:32 +0000
committerChris Larson <clarson@kergoth.com>2003-12-02 22:36:32 +0000
commit48caaff9da7af37cb769c1dbcfd5de4b9bc3d595 (patch)
tree39fa33841bf7c816068aa778bf4d4609f41bc88f /acpid
parent70203063fb6f9f8932c56af62b7771d1aedb4b95 (diff)
downloadopenembedded-48caaff9da7af37cb769c1dbcfd5de4b9bc3d595.tar.gz
Add acpid and apache startup scripts, and have them call update-rc.d.
BKrev: 3fcd13f0H57xM3oWJ1RKXNOcC77faA
Diffstat (limited to 'acpid')
-rw-r--r--acpid/acpid-1.0.2/init0
-rw-r--r--acpid/acpid_1.0.2.oe17
2 files changed, 17 insertions, 0 deletions
diff --git a/acpid/acpid-1.0.2/init b/acpid/acpid-1.0.2/init
new file mode 100644
index 0000000000..e69de29bb2
--- /dev/null
+++ b/acpid/acpid-1.0.2/init
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
}