[Buildroot] [git commit] eudev: replace "echo -en" with printf

Peter Korsgaard peter at korsgaard.com
Fri May 16 20:37:26 UTC 2014


commit: http://git.buildroot.net/buildroot/commit/?id=dcab4e880160e37b8d0cb2adb0e2e7b1d490a639
branch: http://git.buildroot.net/buildroot/commit/?id=refs/heads/master

printf is POSIX-compliant, echo -e/n is not.

Signed-off-by: Maxime Hadjinlian <maxime.hadjinlian at gmail.com>
Acked-by: Thomas De Schampheleire <thomas.de.schampheleire at gmail.com>
Signed-off-by: Peter Korsgaard <peter at korsgaard.com>
---
 package/eudev/S10udev |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/package/eudev/S10udev b/package/eudev/S10udev
index e4d28a2..e00aa91 100755
--- a/package/eudev/S10udev
+++ b/package/eudev/S10udev
@@ -27,8 +27,8 @@ test -r $UDEV_CONFIG || exit 6
 
 case "$1" in
     start)
-        echo -n "Populating ${udev_root:-/dev} using udev: "
-        echo -e '\000\000\000\000' > /proc/sys/kernel/hotplug
+        printf "Populating ${udev_root:-/dev} using udev: "
+        printf '\000\000\000\000' > /proc/sys/kernel/hotplug
         $UDEV_BIN -d || (echo "FAIL" && exit 1)
         udevadm trigger
         echo "done"


More information about the buildroot mailing list