Patchwork [1/2] acpid: install events directory at default.

login
register
mail settings
Submitter Bian Naimeng
Date Sept. 3, 2013, 8:32 a.m.
Message ID <52259EB1.1050807@cn.fujitsu.com>
Download mbox | patch
Permalink /patch/57267/
State Accepted
Commit f4381400292ee7133c6cebd3d8693149f9b64a95
Headers show

Comments

Bian Naimeng - Sept. 3, 2013, 8:32 a.m.
acpid: install events directory at default.

If rule directory "${sysconfdir}/acpi/events" is inexist, 
the acpid initscript will exit with success, but the daemon will be not running.

Signed-off-by: Bian Naimeng <biannm@cn.fujitsu.com>

---
 meta/recipes-bsp/acpid/acpid.inc |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

Patch

diff --git a/meta/recipes-bsp/acpid/acpid.inc b/meta/recipes-bsp/acpid/acpid.inc
index 1ffe6ff..40293c5 100644
--- a/meta/recipes-bsp/acpid/acpid.inc
+++ b/meta/recipes-bsp/acpid/acpid.inc
@@ -27,4 +27,7 @@  do_install () {
 	install -d ${D}${sysconfdir}/init.d
 	cat ${WORKDIR}/init | sed -e's,/usr/sbin,${sbindir},g' > ${D}${sysconfdir}/init.d/acpid
 	chmod 755 ${D}${sysconfdir}/init.d/acpid
+
+	install -d ${D}${sysconfdir}/acpi
+	install -d ${D}${sysconfdir}/acpi/events
 }