Patchwork [1/2] acpid: fix acpid boot error

login
register
mail settings
Submitter Mark Hatle
Date Nov. 21, 2013, 6:53 a.m.
Message ID <1385016807-21986-2-git-send-email-mark.hatle@windriver.com>
Download mbox | patch
Permalink /patch/62067/
State New
Headers show

Comments

Mark Hatle - Nov. 21, 2013, 6:53 a.m.
From: Baogen Shang <baogen.shang@windriver.com>

when booting board,the acpid daemon display some error information.
the information as follow:
acpid: opendir(/etc/acpi/events): No such file or directory
the path "/etc/acpi/events" does not exist,so building the directory
to fix the bug.

Signed-off-by: Baogen Shang <baogen.shang@windriver.com>
Signed-off-by: Jeff Polk <jeff.polk@windriver.com>
---
 meta/recipes-bsp/acpid/acpid/init      | 1 +
 meta/recipes-bsp/acpid/acpid_1.0.10.bb | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

Patch

diff --git a/meta/recipes-bsp/acpid/acpid/init b/meta/recipes-bsp/acpid/acpid/init
index 9f2c0d4..726d9ff 100755
--- a/meta/recipes-bsp/acpid/acpid/init
+++ b/meta/recipes-bsp/acpid/acpid/init
@@ -2,6 +2,7 @@ 
 
 test -x /usr/sbin/acpid || exit 0
 test -d /proc/acpi || exit 0
+mkdir -p /etc/acpi/events
 
 case "$1" in
   start)