summaryrefslogtreecommitdiff
path: root/meta/recipes-bsp
diff options
context:
space:
mode:
authorBian Naimeng <biannm@cn.fujitsu.com>2013-09-03 16:33:55 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-09-06 12:09:29 +0100
commit66a5d15cecdf4bd267dbae5f771ebf3768232481 (patch)
tree89312151bd58414bd5cc176f87d440f0953a3a59 /meta/recipes-bsp
parent8a1c6e465a562b4653f4fb4af3a3845775785485 (diff)
downloadopenembedded-core-66a5d15cecdf4bd267dbae5f771ebf3768232481.tar.gz
openembedded-core-66a5d15cecdf4bd267dbae5f771ebf3768232481.tar.bz2
openembedded-core-66a5d15cecdf4bd267dbae5f771ebf3768232481.zip
acpid: print message if rule directory is inexist
acpid: print message if rule directory is inexist If rule directory is inexist, the acpid initscript will exit with success, but the daemon will be not running. Print message in this case to tell user that the daemon is not running. Signed-off-by: Bian Naimeng <biannm@cn.fujitsu.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-bsp')
-rwxr-xr-xmeta/recipes-bsp/acpid/acpid/init8
1 files changed, 6 insertions, 2 deletions
diff --git a/meta/recipes-bsp/acpid/acpid/init b/meta/recipes-bsp/acpid/acpid/init
index ef08b59596..9f2c0d48d0 100755
--- a/meta/recipes-bsp/acpid/acpid/init
+++ b/meta/recipes-bsp/acpid/acpid/init
@@ -6,8 +6,12 @@ test -d /proc/acpi || exit 0
case "$1" in
start)
echo -n "Starting Advanced Configuration and Power Interface daemon: "
- start-stop-daemon -S -x /usr/sbin/acpid -- -c /etc/acpi/events
- echo "acpid."
+ if [ ! -d /etc/acpi/events ]; then
+ echo "There is not any rule configuration file."
+ else
+ start-stop-daemon -S -x /usr/sbin/acpid -- -c /etc/acpi/events
+ echo "acpid."
+ fi
;;
stop)
echo -n "Stopping Advanced Configuration and Power Interface daemon: "