summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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: "