diff options
author | Fedor Ross <fedor.ross@ifm.com> | 2020-11-18 18:13:13 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2020-12-03 23:02:08 +0000 |
commit | d754cd3a49568da0bc9674da7f3dcd0dbf84287d (patch) | |
tree | 7ccaf8a373edf12cad05d8f78c89df53a75d928a /meta/recipes-core | |
parent | 3d5309b736e76f02ad1bc91a8626d6ba4149a53e (diff) | |
download | poky-d754cd3a49568da0bc9674da7f3dcd0dbf84287d.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.
(From OE-Core rev: af5a68b545fda9013bbe8f07a2175a04e950d768)
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: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-core')
-rw-r--r-- | meta/recipes-core/udev/eudev/init | 2 |
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 | |||
52 | kill_udevd > "/dev/null" 2>&1 | 52 | kill_udevd > "/dev/null" 2>&1 |
53 | 53 | ||
54 | # trigger the sorted events | 54 | # trigger the sorted events |
55 | [ -e /proc/sys/kernel/hotplug ] && echo -e '\000' >/proc/sys/kernel/hotplug | 55 | [ -e /proc/sys/kernel/hotplug ] && printf '\0\n' >/proc/sys/kernel/hotplug |
56 | @UDEVD@ -d | 56 | @UDEVD@ -d |
57 | 57 | ||
58 | udevadm control --env=STARTUP=1 | 58 | udevadm control --env=STARTUP=1 |