diff options
author | Fedor Ross <fedor.ross@ifm.com> | 2020-11-18 18:13:13 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2020-11-24 10:27:45 +0000 |
commit | c8f91e782a1f169af167e71181b8799995c8c3a0 (patch) | |
tree | 595658346f700852e5fbec40b86383df11f6bf6f | |
parent | 0d011819e977fb19027c4dbf91284b64d2ae74e8 (diff) | |
download | poky-c8f91e782a1f169af167e71181b8799995c8c3a0.tar.gz poky-c8f91e782a1f169af167e71181b8799995c8c3a0.tar.bz2 poky-c8f91e782a1f169af167e71181b8799995c8c3a0.zip |
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: c747acca33f84879a1ebd0ef972c07f4d5dff8b7)
Signed-off-by: Fedor Ross <fedor.ross@ifm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-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 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 |