diff options
Diffstat (limited to 'acpid')
-rw-r--r-- | acpid/acpid-1.0.2/init | 0 | ||||
-rw-r--r-- | acpid/acpid_1.0.2.oe | 17 |
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 } |