]> code.ossystems Code Review - openembedded-core.git/commit
eudev: remove bashism to be compatible with dash
authorFedor Ross <fedor.ross@ifm.com>
Wed, 18 Nov 2020 17:13:13 +0000 (18:13 +0100)
committerAnuj Mittal <anuj.mittal@intel.com>
Wed, 25 Nov 2020 15:04:32 +0000 (23:04 +0800)
commitaf5a68b545fda9013bbe8f07a2175a04e950d768
treeea61f76fd6d3c82f621d8a8a3978338a91baf736
parentf3dbd50d3af6ff6ef6d2d5a64691c0861a19a733
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: Anuj Mittal <anuj.mittal@intel.com>
meta/recipes-core/udev/eudev/init