[Buildroot] [PATCH 1/4] acpid: replace "echo -e" with printf
Maxime Hadjinlian
maxime.hadjinlian at gmail.com
Wed May 14 10:26:51 UTC 2014
printf is POSIX-compliant, echo -e is not.
Signed-off-by: Maxime Hadjinlian <maxime.hadjinlian at gmail.com>
---
package/acpid/acpid.mk | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/package/acpid/acpid.mk b/package/acpid/acpid.mk
index 1f4ec31..4a61f16 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" \
>$(TARGET_DIR)/etc/acpi/events/powerbtn
endef
--
2.0.0.rc0
More information about the buildroot
mailing list