]> code.ossystems Code Review - openembedded-core.git/commitdiff
acpid: fix acpid boot error
authorBaogen Shang <baogen.shang@windriver.com>
Thu, 21 Nov 2013 06:53:26 +0000 (00:53 -0600)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 22 Nov 2013 13:39:33 +0000 (13:39 +0000)
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>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-bsp/acpid/acpid/init

index 9f2c0d48d071c05ddcf3005032f77aef25783390..726d9ffd9ede50c7d018ee71bd777632c03d44ab 100755 (executable)
@@ -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)