summaryrefslogtreecommitdiffstats
path: root/meta/recipes-bsp/acpid
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 23:03:21 +0100
commit18dfcc5139f30b74c7f3093d7c3509b6bb59861e (patch)
treee15cb946d3e2727d55202e1dd7b969fb2d9c8826 /meta/recipes-bsp/acpid
parentf4381400292ee7133c6cebd3d8693149f9b64a95 (diff)
downloadpoky-18dfcc5139f30b74c7f3093d7c3509b6bb59861e.tar.gz
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. (From OE-Core rev: 66a5d15cecdf4bd267dbae5f771ebf3768232481) Signed-off-by: Bian Naimeng <biannm@cn.fujitsu.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-bsp/acpid')
-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
6case "$1" in 6case "$1" in
7 start) 7 start)
8 echo -n "Starting Advanced Configuration and Power Interface daemon: " 8 echo -n "Starting Advanced Configuration and Power Interface daemon: "
9 start-stop-daemon -S -x /usr/sbin/acpid -- -c /etc/acpi/events 9 if [ ! -d /etc/acpi/events ]; then
10 echo "acpid." 10 echo "There is not any rule configuration file."
11 else
12 start-stop-daemon -S -x /usr/sbin/acpid -- -c /etc/acpi/events
13 echo "acpid."
14 fi
11 ;; 15 ;;
12 stop) 16 stop)
13 echo -n "Stopping Advanced Configuration and Power Interface daemon: " 17 echo -n "Stopping Advanced Configuration and Power Interface daemon: "