aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Maxime Hadjinlian <maxime.hadjinlian@gmail.com>2014-05-21 10:25:09 +0200
committerGravatar Peter Korsgaard <peter@korsgaard.com>2014-05-21 10:39:41 +0200
commit6b9bc5fe407c519b048faea22468d59cadec49a1 (patch)
treecfe954ef8d6d49eb472c5b1b3ef8237658150d6f
parent41486e1be8b04425b19eddf8241f6382507b7a67 (diff)
downloadbuildroot-6b9bc5fe407c519b048faea22468d59cadec49a1.tar.gz
buildroot-6b9bc5fe407c519b048faea22468d59cadec49a1.tar.bz2
acpid: replace "echo -e" with printf
printf is POSIX-compliant, echo -e is not. Signed-off-by: Maxime Hadjinlian <maxime.hadjinlian@gmail.com> Cc: Thomas De Schampheleire <patrickdepinguin@gmail.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
-rw-r--r--package/acpid/acpid.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/package/acpid/acpid.mk b/package/acpid/acpid.mk
index 1f4ec3172b..7a6a478ed4 100644
--- a/package/acpid/acpid.mk
+++ b/package/acpid/acpid.mk
@@ -17,7 +17,7 @@ endef
define ACPID_SET_EVENTS
mkdir -p $(TARGET_DIR)/etc/acpi/events
- /bin/echo -e "event=button[ /]power\naction=/sbin/poweroff" \
+ printf "event=button[ /]power\naction=/sbin/poweroff\n" \
>$(TARGET_DIR)/etc/acpi/events/powerbtn
endef