summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core
diff options
context:
space:
mode:
authorFedor Ross <fedor.ross@ifm.com>2020-11-18 18:13:13 +0100
committerSteve Sakoman <steve@sakoman.com>2020-11-30 12:05:57 -1000
commit34161447a03386d629a3782dabcd7f56fd8b9814 (patch)
treedffe5cd2eb6fdab66bf63374def4a80dc4a1f9e7 /meta/recipes-core
parent5fe58dbfbc42aa105a6be6444878f0c0588cb4d5 (diff)
downloadopenembedded-core-34161447a03386d629a3782dabcd7f56fd8b9814.tar.gz
eudev: remove bashism to be compatible with dash
Remove 'echo -e' and replace it with 'printf'. In bash the builtin 'echo' has an option for interpreting backslash escapes. In a shell like dash the builtin 'echo' interprets backslash escapes by default. Therefor the 'echo' in dash doesn't have the '-e' option. When using 'printf' instead it is safe to use it either with bash or dash. Signed-off-by: Fedor Ross <fedor.ross@ifm.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit c747acca33f84879a1ebd0ef972c07f4d5dff8b7) Signed-off-by: Steve Sakoman <steve@sakoman.com>
Diffstat (limited to 'meta/recipes-core')
-rw-r--r--meta/recipes-core/udev/eudev/init2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/recipes-core/udev/eudev/init b/meta/recipes-core/udev/eudev/init
index 0455ade258..c60dbbf6d5 100644
--- a/meta/recipes-core/udev/eudev/init
+++ b/meta/recipes-core/udev/eudev/init
@@ -52,7 +52,7 @@ case "$1" in
kill_udevd > "/dev/null" 2>&1
# trigger the sorted events
- [ -e /proc/sys/kernel/hotplug ] && echo -e '\000' >/proc/sys/kernel/hotplug
+ [ -e /proc/sys/kernel/hotplug ] && printf '\0\n' >/proc/sys/kernel/hotplug
@UDEVD@ -d
udevadm control --env=STARTUP=1